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