Apply phase3 related Title fixes. With one minor addition, Title constructor marked...
[lhc/web/wiklou.git] / tests / phpunit / includes / SampleTest.php
index 3c3553f..fa7c4d5 100644 (file)
@@ -88,7 +88,7 @@ class TestSample extends MediaWikiTestCase {
         * See http://www.phpunit.de/manual/3.4/en/appendixes.annotations.html#appendixes.annotations.expectedException
         */
        function testTitleObjectFromObject() {
-               $title = Title::newFromText( new Title( "test" ) );
+               $title = Title::newFromText( Title::newFromText( "test" ) );
                $this->assertEquals( "Test", $title->isLocal() );
        }
 }