Example #1
0
 public function testModified()
 {
     $iniObj = new ini("unitTest/files/ParserDetails.ini");
     $this->assertFalse($iniObj->modified(), "Initial state of modified() is TRUE, this is wrong.");
     $iniObj->addSection("Blah");
     $iniObj->Blah->addKey("Name", "Value");
     $this->assertTrue($iniObj->modified(), "State of modified() after change is FALSE, this is wrong.");
     $iniObj->removeSection("Blah");
     $this->assertFalse($iniObj->modified(), "State of modified() after reverting change is TRUE, this is wrong.");
 }