79 $foreignNamespaces = [
80 0 =>
'', 1 =>
'Talk', 100 =>
'Portal', 9000 =>
'Bogus'
84 $testTitle = $factory->createForeignTitle( $title, $ns );
86 $this->assertEquals( $testTitle->isNamespaceIdKnown(),
87 $foreignTitle->isNamespaceIdKnown() );
90 $testTitle->isNamespaceIdKnown() &&
91 $foreignTitle->isNamespaceIdKnown()
93 $this->assertEquals( $testTitle->getNamespaceId(),
94 $foreignTitle->getNamespaceId() );
97 $this->assertEquals( $testTitle->getNamespaceName(),
98 $foreignTitle->getNamespaceName() );
99 $this->assertEquals( $testTitle->getText(), $foreignTitle->getText() );