diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-13 01:02:09 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-26 22:49:13 +0100 |
commit | 45da5815517c408bafed6b3744766860afdcd7b8 (patch) | |
tree | bbb923551aa254d65bde3fa240194a02c10557d4 /tests/phpunit/includes/auth/AuthenticationRequestTest.php | |
parent | 707c74227c02a4f3d6332d8439eb1788cb801790 (diff) | |
download | mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.tar.gz mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.zip |
Use ::class to resolve class names in tests
This helps to find renamed or misspelled classes earlier.
Phan will check the class names
Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
Diffstat (limited to 'tests/phpunit/includes/auth/AuthenticationRequestTest.php')
-rw-r--r-- | tests/phpunit/includes/auth/AuthenticationRequestTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/auth/AuthenticationRequestTest.php b/tests/phpunit/includes/auth/AuthenticationRequestTest.php index 0e549a5ca616..1bc0f31f51a7 100644 --- a/tests/phpunit/includes/auth/AuthenticationRequestTest.php +++ b/tests/phpunit/includes/auth/AuthenticationRequestTest.php @@ -17,9 +17,9 @@ class AuthenticationRequestTest extends \MediaWikiTestCase { $ret = $mock->describeCredentials(); $this->assertInternalType( 'array', $ret ); $this->assertArrayHasKey( 'provider', $ret ); - $this->assertInstanceOf( 'Message', $ret['provider'] ); + $this->assertInstanceOf( \Message::class, $ret['provider'] ); $this->assertArrayHasKey( 'account', $ret ); - $this->assertInstanceOf( 'Message', $ret['account'] ); + $this->assertInstanceOf( \Message::class, $ret['account'] ); } public function testLoadRequestsFromSubmission() { |