X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fupload%2FUploadStashTest.php;h=e7960651cd6fe9f68549d45482b362fd52dd171f;hb=33afb7440a03df8d1878c94d2f3d3b9fdd1a848b;hp=f46ad20646d59fc96128bc0fef9b7985320e331f;hpb=236488d398046838059f758b0915341648b64c7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/upload/UploadStashTest.php b/tests/phpunit/includes/upload/UploadStashTest.php index f46ad20646..e7960651cd 100644 --- a/tests/phpunit/includes/upload/UploadStashTest.php +++ b/tests/phpunit/includes/upload/UploadStashTest.php @@ -41,7 +41,7 @@ class UploadStashTest extends MediaWikiTestCase { /** * @todo give this test a real name explaining what is being tested here */ - public function testBug29408() { + public function testT31408() { $this->setMwGlobals( 'wgUser', self::$users['uploader']->getUser() ); $repo = RepoGroup::singleton()->getLocalRepo(); @@ -105,7 +105,7 @@ class UploadStashTest extends MediaWikiTestCase { $stash->stashFile( $this->tmpFile ); $this->fail( 'Expected UploadStashFileException not thrown' ); } catch ( UploadStashFileException $e ) { - $this->assertInstanceOf( 'ILocalizedException', $e ); + $this->assertInstanceOf( ILocalizedException::class, $e ); } catch ( Exception $e ) { $this->fail( 'Unexpected exception class ' . get_class( $e ) ); }