PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php
2021-12-15 15:01:13 -07:00

21 lines
471 B
PHP

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