/** * test loading xml data from file */ public function testFileLoading() { $testFile = 'src/Test/data/source.xml'; $this->assertFileExists($testFile, 'test file don\'t exists'); $xml = new Xml(); $xml->loadXmlFile($testFile); $this->assertFalse($xml->hasErrors()); $root = $xml->documentElement; $this->assertEquals('lorem ipsum', $root->getElementsByTagName('sub')->item(0)->nodeValue); }