mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-22 04:52:35 +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();
|
|
}
|
|
|
|
}
|