diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RepositoryClientTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RepositoryClientTest.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RepositoryClientTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RepositoryClientTest.php new file mode 100644 index 00000000..38fdb133 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/SPARQLStore/RepositoryClientTest.php @@ -0,0 +1,51 @@ +<?php + +namespace SMW\Tests\SPARQLStore; + +use SMW\SPARQLStore\RepositoryClient; + +/** + * @covers \SMW\SPARQLStore\RepositoryClient + * @group semantic-mediawiki + * + * @license GNU GPL v2+ + * @since 2.2 + * + * @author mwjames + */ +class RepositoryClientTest extends \PHPUnit_Framework_TestCase { + + public function testCanConstruct() { + + $this->assertInstanceOf( + '\SMW\SPARQLStore\RepositoryClient', + new RepositoryClient( '', '', '', '' ) + ); + } + + public function testPublicAccess() { + + $instance = new RepositoryClient( 'Foo', 'Bar', 'Nu', 'Vim' ); + + $this->assertSame( + 'Foo', + $instance->getDefaultGraph() + ); + + $this->assertSame( + 'Bar', + $instance->getQueryEndpoint() + ); + + $this->assertSame( + 'Nu', + $instance->getUpdateEndpoint() + ); + + $this->assertSame( + 'Vim', + $instance->getDataEndpoint() + ); + } + +} |