(root)/tests/Config/test/bug11435-inicommented.phpt – Revision 1
Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
regression test for bug #11435 - IniCommented
|
|
|
3 |
--FILE--
|
|
|
4 |
<?php
|
|
|
5 |
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
|
|
|
6 |
$datasrc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bug11435.ini';
|
|
|
7 |
|
|
|
8 |
$res =& $config->parseConfig($datasrc, 'IniCommented');
|
|
|
9 |
|
|
|
10 |
$root =& $config->getRoot();
|
|
|
11 |
|
|
|
12 |
print $root->toString('IniCommented');
|
|
|
13 |
|
|
|
14 |
?>
|
|
|
15 |
--EXPECT--
|
|
|
16 |
[characters]
|
|
|
17 |
comma = "string,"
|
|
|
18 |
semi-colon = "string;"
|
|
|
19 |
equal-sign = "string="
|
|
|
20 |
double-quote = "string\""
|
|
|
21 |
single-quote = string'
|
|
|
22 |
percent = "string%"
|
|
|
23 |
tilde = "string~"
|
|
|
24 |
exclamation-mark = "string!"
|
|
|
25 |
pipe = "string|"
|
|
|
26 |
ampersand = "string&"
|
|
|
27 |
open-bracket = "string("
|
|
|
28 |
close-bracket = "string)"
|
|
|
29 |
|
|
|
30 |
[emptystrings]
|
|
|
31 |
string1 =
|
|
|
32 |
string2 = NULL
|
|
|
33 |
string3 =
|
|
|
34 |
string4 = "none"
|