PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php

22 lines
456 B
PHP
Raw Normal View History

2018-08-13 14:31:50 +00:00
<?php
use PortableInfobox\Parser\Nodes\NodeUnimplemented;
2018-08-16 09:25:53 +00:00
2018-08-13 14:31:50 +00:00
/**
* @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();
}
2018-08-16 09:25:53 +00:00
}