PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php
2021-09-11 17:07:07 -06:00

21 lines
460 B
PHP

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