Пример #1
0
 /**
  * @param \SimpleXMLElement $xmlNode
  *
  * @return string
  */
 protected function extractDataFromNode(\SimpleXMLElement $xmlNode)
 {
     /*
      * <default> tag can contain <ref> or other WikiText parser hooks
      * We should not parse it's contents as XML but return pure text in order to let MediaWiki Parser
      * parse it.
      */
     return $this->getExternalParser()->parseRecursive(SimpleXmlUtil::getInstance()->getInnerXML($xmlNode));
 }
Пример #2
0
 protected function setUp()
 {
     $this->setupFile = dirname(__FILE__) . '/../PortableInfobox.setup.php';
     parent::setUp();
     $this->simpleXmlUtil = \Wikia\PortableInfobox\Helpers\SimpleXmlUtil::getInstance();
 }