Fix ini writer unit tests

refs #8706
This commit is contained in:
Matthias Jentsch 2015-06-01 16:46:52 +02:00
parent 1901f0af98
commit 4c6a2b4f06
1 changed files with 8 additions and 14 deletions

View File

@ -521,12 +521,10 @@ EOD
key1 = "1"
key2 = "2"
[two]
a.b = "c"
d.e = "f"
[three]
key = "value"
foo.bar = "raboof"
@ -537,12 +535,10 @@ EOD;
key = "value"
foo.bar = "raboof"
[two]
a.b = "c"
d.e = "f"
[one]
key1 = "1"
key2 = "2"
@ -589,7 +585,6 @@ EOD;
; comment 1
[one]
; comment 2
[two]
EOD;
@ -598,7 +593,6 @@ EOD;
; comment 2
[two]
; comment 1
[one]
EOD;
@ -637,8 +631,8 @@ EOD;
);
$this->assertEquals(
$config,
$writer->render(),
trim($config),
trim($writer->render()),
'IniWriter does not preserve comments on empty lines'
);
}
@ -667,8 +661,8 @@ EOD;
);
$this->assertEquals(
$config,
$writer->render(),
trim($config),
trim($writer->render()),
'IniWriter does not preserve comments on property lines'
);
}
@ -686,8 +680,8 @@ EOD;
);
$this->assertEquals(
$config,
$writer->render(),
trim($config),
trim($writer->render()),
'IniWriter does not preserve comments on empty section lines'
);
}
@ -719,8 +713,8 @@ EOD;
);
$this->assertEquals(
$config,
$writer->render(),
trim($config),
trim($writer->render()),
'IniWriter does not preserve comments on property lines'
);
}