/** * Contrôle supression d'un élément * * @return void */ public function testKill() { $this->if($conf = new TestClass())->and($conf->set(1, 'section1', 'name1'))->and($conf->set(2, 'section1', 'name2'))->and($conf->set('toto', 'stringSection'))->object($conf->kill('section1', 'name1'))->isIdenticalTo($conf)->variable($conf->get('section1', 'name1'))->isNull()->integer($conf->get('section1', 'name2'))->isEqualTo(2)->object($conf->getAll())->isIdenticalTo($conf)->object($conf->get())->isIdenticalTo($conf)->object($conf->kill('section1'))->isIdenticalTo($conf)->object($conf->kill('section8'))->isIdenticalTo($conf)->if($bar = new \Solire\Conf\Conf())->and($bar->stringSection = 'toto')->object($conf->getAll())->isEqualTo($bar); }