PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php
2022-03-11 13:35:51 -07:00

23 lines
519 B
PHP

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