X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleMethodsTest.php;h=f4eb6bf5d30158c930ac6dc570741dd2106b7e74;hb=801c6810a741cffed1174267958bd3426fd1d191;hp=54cdbe28e71e0168c639a023b403067675a08517;hpb=236488d398046838059f758b0915341648b64c7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleMethodsTest.php b/tests/phpunit/includes/TitleMethodsTest.php index 54cdbe28e7..f4eb6bf5d3 100644 --- a/tests/phpunit/includes/TitleMethodsTest.php +++ b/tests/phpunit/includes/TitleMethodsTest.php @@ -318,7 +318,7 @@ class TitleMethodsTest extends MediaWikiLangTestCase { */ public function testGetOtherPage( $text, $expected ) { if ( $expected === null ) { - $this->setExpectedException( 'MWException' ); + $this->setExpectedException( MWException::class ); } $title = Title::newFromText( $text );