assertTrue($parser->loadString(file_get_contents(__DIR__ .'/../TestFiles/General/simple.xml'))); } public function testWrongEval() { $parser = new Engine(); $parser->loadString(file_get_contents(__DIR__ .'/../TestFiles/General/simple.xml')); $this->assertEquals(0, $parser->getPrice()); } }