32 'MainNamespaceArticle', 0,
36 'MainNamespaceArticle',
null,
40 'Magic:_The_Gathering', 0,
48 'Talk:Magic:_The_Gathering', 1,
56 'Bogus:Nice_talk',
null,
79 $foreignNamespaces = [
80 0 =>
'', 1 =>
'Talk', 100 =>
'Portal', 9000 =>
'Bogus'
84 $testTitle = $factory->createForeignTitle(
$title, $ns );
86 $this->assertEquals( $testTitle->isNamespaceIdKnown(),
90 $testTitle->isNamespaceIdKnown() &&
93 $this->assertEquals( $testTitle->getNamespaceId(),
97 $this->assertEquals( $testTitle->getNamespaceName(),
99 $this->assertEquals( $testTitle->getText(), $foreignTitle->
getText() );