mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-24 05:45:17 +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();
|
|
}
|
|
|
|
}
|