33 20,
'Contributor',
'JohnDoe'
37 1,
'Discussion',
'Capital'
41 0,
'',
'MainNamespace'
44 new ForeignTitle( 4,
'Some ns',
'Article title with spaces' ),
45 4,
'Some_ns',
'Article_title_with_spaces'
56 $this->assertEquals(
true,
$title->isNamespaceIdKnown() );
57 $this->assertEquals( $expectedId,
$title->getNamespaceId() );
58 $this->assertEquals( $expectedName,
$title->getNamespaceName() );
59 $this->assertEquals( $expectedText,
$title->getText() );
65 $this->assertEquals(
false,
$title->isNamespaceIdKnown() );
66 $this->assertEquals(
'this',
$title->getNamespaceName() );
67 $this->assertEquals(
'that',
$title->getText() );
71 $this->setExpectedException(
'MWException' );
91 new ForeignTitle( 4,
'Some ns',
'Article title with spaces' ),
92 'Some_ns:Article_title_with_spaces'
101 $this->assertEquals( $fullText,
$title->getFullText() );