*/
function testTitleObjectStringConversion() {
$title = Title::newFromText("text");
- $this->assertEquals("Text", $title->__toString(), "Title creation");
- $this->assertEquals("Text", "Text", "Automatic string conversion");
+ $this->assertInstanceOf('Title', $title, "Title creation");
+ $this->assertEquals("Text", $title, "Automatic string conversion");
$title = Title::newFromText("text", NS_MEDIA);
- $this->assertEquals("Media:Text", $title->__toString(), "Title creation with namespace");
-
+ $this->assertEquals("Media:Text", $title, "Title creation with namespace");
}
/**