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