diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RdfResultPrinterTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RdfResultPrinterTest.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RdfResultPrinterTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RdfResultPrinterTest.php new file mode 100644 index 00000000..debdc0cb --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/includes/queryprinters/RdfResultPrinterTest.php @@ -0,0 +1,42 @@ +<?php + +namespace SMW\Test; + +use SMW\RdfResultPrinter; + +/** + * @covers \SMW\RdfResultPrinter + * + * @group SMW + * @group SMWExtension + * + * @license GNU GPL v2+ + * @since 1.9 + * + * @author mwjames + */ +class RdfResultPrinterTest extends QueryPrinterTestCase { + + /** + * @return string|false + */ + public function getClass() { + return '\SMW\RdfResultPrinter'; + } + + /** + * @return RdfResultPrinter + */ + private function getInstance( $parameters = [] ) { + return $this->setParameters( new RdfResultPrinter( 'rdf' ), $parameters ); + } + + public function testConstructor() { + + $this->assertInstanceOf( + '\SMW\RdfResultPrinter', + $this->getInstance() + ); + } + +} |