/** * Test if a configuration init with a SimpleXMLElement * has been added correctly. * * @return void */ public function testGetChildrenByInitWithSimpleXmlElement() { $this->configuration->init($this->getTestNode('test', 'testValue')); $toBeTested = new Configuration('testNode'); $toBeTested->setAttr('test'); $toBeTested->setValue('testValue'); $this->assertEquals(array($toBeTested), $this->configuration->getChildren()); }