X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleTest.php;h=c81a07872e8308255b5bbe15c960d07baca9039a;hb=55c51f36a4869614d870dac5d870638ec58a95ff;hp=d12e4b864380272b6c84da1e3c427ac96bbc363e;hpb=1a40e0cc86b6ee0706606ded3ea243dfde4a414c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index d12e4b8643..c81a07872e 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -163,7 +163,7 @@ class TitleTest extends MediaWikiTestCase { */ public function testSecureAndSplitValid( $text ) { $this->secureAndSplitGlobals(); - $this->assertInstanceOf( 'Title', Title::newFromText( $text ), "Valid: $text" ); + $this->assertInstanceOf( Title::class, Title::newFromText( $text ), "Valid: $text" ); } /** @@ -434,7 +434,7 @@ class TitleTest extends MediaWikiTestCase { $this->setContentLang( $contLang ); $title = Title::newFromText( $titleText ); - $this->assertInstanceOf( 'Title', $title, + $this->assertInstanceOf( Title::class, $title, "Test must be passed a valid title text, you gave '$titleText'" ); $this->assertEquals( $expected,