PortableInfobox/tests/phpunit/nodes/NodeUnimplementedTest.php

21 lines
471 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
*/
2021-12-15 22:01:13 +00:00
class NodeUnimplementedTest extends MediaWikiIntegrationTestCase {
2018-08-13 14:31:50 +00:00
public function testNewFromXML() {
2021-09-11 23:07:07 +00:00
$this->expectException( PortableInfobox\Parser\Nodes\UnimplementedNodeException::class );
2018-08-13 14:31:50 +00:00
( new NodeUnimplemented(
PortableInfobox\Parser\XmlParser::parseXmlString( "<foo/>" ),
[]
) )->getData();
}
2018-08-16 09:25:53 +00:00
}