public function testXMLParse() { $event = new EventDispatcher(); $file = new File(); $file->fopen('example.xml'); $options = new ParseOptions(); $parser = new XMLParser($event); $parser->register(); $parser->parse($file, $options); $this->assertTrue(true); }
/** * Starts parsing a file * * @param FileInterface $file * @return array() the xml data * @access public */ public function parse(FileInterface $file, ParseOptions $options) { try { parent::parse($file, $options); } catch (ParserException $e) { throw new EngineException($e->getMessage()); } return $this->builder; }