PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php
2018-08-13 16:31:50 +02:00

20 lines
454 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();
}
}