33 lines
595 B
PHP
33 lines
595 B
PHP
<?php
|
|
|
|
namespace SMW\Tests\Exception;
|
|
|
|
use SMW\Exception\NamespaceIndexChangeException;
|
|
|
|
/**
|
|
* @covers \SMW\Exception\NamespaceIndexChangeException
|
|
* @group semantic-mediawiki
|
|
*
|
|
* @license GPL-2.0-or-later
|
|
* @since 3.2
|
|
*
|
|
* @author mwjames
|
|
*/
|
|
class NamespaceIndexChangeExceptionTest extends \PHPUnit\Framework\TestCase {
|
|
|
|
public function testCanConstruct() {
|
|
$instance = new NamespaceIndexChangeException( 'Foo', 'Bar' );
|
|
|
|
$this->assertInstanceof(
|
|
NamespaceIndexChangeException::class,
|
|
$instance
|
|
);
|
|
|
|
$this->assertInstanceof(
|
|
'\RuntimeException',
|
|
$instance
|
|
);
|
|
}
|
|
|
|
}
|