PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php
2018-08-16 11:25:53 +02:00

22 lines
456 B
PHP

<?php
use PortableInfobox\Parser\Nodes\NodeUnimplemented;
/**
* @group PortableInfobox
* @covers PortableInfobox\Parser\Nodes\NodeUnimplemented
*/
class NodeUnimplementedTest extends MediaWikiTestCase {
/**
* @expectedException PortableInfobox\Parser\Nodes\UnimplementedNodeException
*/
public function testNewFromXML() {
( new NodeUnimplemented(
PortableInfobox\Parser\XmlParser::parseXmlString( "<foo/>" ),
[]
) )->getData();
}
}