diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php new file mode 100644 index 00000000..4949fb1e --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php @@ -0,0 +1,33 @@ +<?php + +namespace SMW\Tests\Services\Exception; + +use SMW\Services\Exception\ServiceNotFoundException; + +/** + * @covers \SMW\Services\Exception\ServiceNotFoundException + * @group semantic-mediawiki + * + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class ServiceNotFoundExceptionTest extends \PHPUnit_Framework_TestCase { + + public function testCanConstruct() { + + $instance = new ServiceNotFoundException( 'foo' ); + + $this->assertInstanceof( + ServiceNotFoundException::class, + $instance + ); + + $this->assertInstanceof( + '\InvalidArgumentException', + $instance + ); + } + +} |