71 $testTitle = $factory->createForeignTitle( $title, $ns );
73 $this->assertEquals( $testTitle->isNamespaceIdKnown(),
74 $foreignTitle->isNamespaceIdKnown() );
77 $testTitle->isNamespaceIdKnown() &&
78 $foreignTitle->isNamespaceIdKnown()
80 $this->assertEquals( $testTitle->getNamespaceId(),
81 $foreignTitle->getNamespaceId() );
84 $this->assertEquals( $testTitle->getNamespaceName(),
85 $foreignTitle->getNamespaceName() );
86 $this->assertEquals( $testTitle->getText(), $foreignTitle->getText() );
88 $this->assertEquals( str_replace(
' ',
'_', $title ),
89 $foreignTitle->getFullText() );