mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-18 19:20:31 +00:00
21 lines
460 B
PHP
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();
|
|
}
|
|
|
|
}
|