Exemplo n.º 1
0
 /**
  * @dataProvider entitiesTestDataProvider
  */
 public function testHTMLEntities($markup, $expectedResult)
 {
     $result = \Wikia\PortableInfobox\Parser\XmlParser::parseXmlString($markup);
     $this->assertEquals($expectedResult, $result[0]);
 }
Exemplo n.º 2
0
 public static function newFromXML($text, array $data = [])
 {
     return self::getInstance(XmlParser::parseXmlString($text), $data);
 }