X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleTest.php;h=c81a07872e8308255b5bbe15c960d07baca9039a;hb=414b703c5842ec47a7809ec039b499f0b0966bb2;hp=75e0c3ef011a470ddf86a29f4ae5dbb6afb8a66f;hpb=565558f4ef6762df13613d3ef03804b39423cf2e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index 75e0c3ef01..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, @@ -552,6 +552,7 @@ class TitleTest extends MediaWikiTestCase { } /** + * @covers Title::newFromTitleValue * @dataProvider provideNewFromTitleValue */ public function testNewFromTitleValue( TitleValue $value ) { @@ -572,6 +573,7 @@ class TitleTest extends MediaWikiTestCase { } /** + * @covers Title::getTitleValue * @dataProvider provideGetTitleValue */ public function testGetTitleValue( $text ) { @@ -603,6 +605,7 @@ class TitleTest extends MediaWikiTestCase { } /** + * @covers Title::getFragment * @dataProvider provideGetFragment * * @param string $full @@ -913,6 +916,7 @@ class TitleTest extends MediaWikiTestCase { } /** + * @covers Title::getFragmentForURL * @dataProvider provideGetFragmentForURL * * @param string $titleStr