X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fconfig%2FGlobalVarConfigTest.php;h=db5f73d41e9962cbc6853334c1fe1fe9fa3ca490;hb=740e157914a297a3ede390adb8db34c6d7c176f7;hp=a6b220d6f65ebccbc63246390f0a2d75809e8e3b;hpb=3f7b35adc5136623de5961701e075443ed870aae;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/config/GlobalVarConfigTest.php b/tests/phpunit/includes/config/GlobalVarConfigTest.php index a6b220d6f6..db5f73d41e 100644 --- a/tests/phpunit/includes/config/GlobalVarConfigTest.php +++ b/tests/phpunit/includes/config/GlobalVarConfigTest.php @@ -7,7 +7,7 @@ class GlobalVarConfigTest extends MediaWikiTestCase { */ public function testNewInstance() { $config = GlobalVarConfig::newInstance(); - $this->assertInstanceOf( 'GlobalVarConfig', $config ); + $this->assertInstanceOf( GlobalVarConfig::class, $config ); $this->maybeStashGlobal( 'wgBaz' ); $GLOBALS['wgBaz'] = 'somevalue'; // Check prefix is set to 'wg' @@ -24,7 +24,7 @@ class GlobalVarConfigTest extends MediaWikiTestCase { $this->maybeStashGlobal( $var ); $GLOBALS[$var] = $rand; $config = new GlobalVarConfig( $prefix ); - $this->assertInstanceOf( 'GlobalVarConfig', $config ); + $this->assertInstanceOf( GlobalVarConfig::class, $config ); $this->assertEquals( $rand, $config->get( 'GlobalVarConfigTest' ) ); } @@ -83,7 +83,7 @@ class GlobalVarConfigTest extends MediaWikiTestCase { public function testGet( $name, $prefix, $expected ) { $config = new GlobalVarConfig( $prefix ); if ( $expected === false ) { - $this->setExpectedException( 'ConfigException', 'GlobalVarConfig::get: undefined option:' ); + $this->setExpectedException( ConfigException::class, 'GlobalVarConfig::get: undefined option:' ); } $this->assertEquals( $config->get( $name ), $expected ); }