summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Unit/Services/Exception/ServiceNotFoundExceptionTest.php
blob: 4949fb1e3b92f35ef2e9e36b9d26023d417f18d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
		);
	}

}