* @dataProvider basicProvider
*/
public function testBasic( ForeignTitle $title, $expectedId, $expectedName,
- $expectedText ) {
-
+ $expectedText
+ ) {
$this->assertEquals( true, $title->isNamespaceIdKnown() );
$this->assertEquals( $expectedId, $title->getNamespaceId() );
$this->assertEquals( $expectedName, $title->getNamespaceName() );
}
public function testUnknownNamespaceError() {
- $this->setExpectedException( 'MWException' );
+ $this->setExpectedException( MWException::class );
$title = new ForeignTitle( null, 'this', 'that' );
$title->getNamespaceId();
}