parent
58b2e6c00f
commit
99866bfdbe
|
@ -409,9 +409,9 @@ EOD;
|
||||||
$config->setSection('garbage', $section);
|
$config->setSection('garbage', $section);
|
||||||
|
|
||||||
$iniWriter = new IniWriter($config, '/dev/null');
|
$iniWriter = new IniWriter($config, '/dev/null');
|
||||||
$this->assertEquals(
|
$this->assertNotContains(
|
||||||
0,
|
'foobar',
|
||||||
preg_match('/foobar/', $iniWriter->render()),
|
$iniWriter->render(),
|
||||||
'IniWriter persists section keys with null values'
|
'IniWriter persists section keys with null values'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -424,9 +424,9 @@ EOD;
|
||||||
$config->setSection('garbage', $section);
|
$config->setSection('garbage', $section);
|
||||||
|
|
||||||
$iniWriter = new IniWriter($config, '/dev/null');
|
$iniWriter = new IniWriter($config, '/dev/null');
|
||||||
$this->assertEquals(
|
$this->assertContains(
|
||||||
1,
|
'foobar',
|
||||||
preg_match('/foobar/', $iniWriter->render()),
|
$iniWriter->render(),
|
||||||
'IniWriter doesn\'t persist section keys with empty values'
|
'IniWriter doesn\'t persist section keys with empty values'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -441,9 +441,9 @@ EOD;
|
||||||
$section = $config->getSection('garbage');
|
$section = $config->getSection('garbage');
|
||||||
$section->foobar = null;
|
$section->foobar = null;
|
||||||
$iniWriter = new IniWriter($config, $filename);
|
$iniWriter = new IniWriter($config, $filename);
|
||||||
$this->assertEquals(
|
$this->assertNotContains(
|
||||||
0,
|
'foobar',
|
||||||
preg_match('/foobar/', $iniWriter->render()),
|
$iniWriter->render(),
|
||||||
'IniWriter doesn\'t remove section keys with null values'
|
'IniWriter doesn\'t remove section keys with null values'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue