X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fskins%2FSkinFactoryTest.php;h=4289fd918867303a2811a4cc5a444528d859275c;hb=97792e85e1dce666dee37ee52a18d895247b1653;hp=0944ea2c0c608464eda388f63bc76c03c7029812;hpb=31bc1e9c3546a97220cd7c550c57fad3d4f4304d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/skins/SkinFactoryTest.php b/tests/phpunit/includes/skins/SkinFactoryTest.php index 0944ea2c0c..4289fd9188 100644 --- a/tests/phpunit/includes/skins/SkinFactoryTest.php +++ b/tests/phpunit/includes/skins/SkinFactoryTest.php @@ -11,7 +11,7 @@ class SkinFactoryTest extends MediaWikiTestCase { return new SkinFallback(); } ); $this->assertTrue( true ); // No exception thrown - $this->setExpectedException( 'InvalidArgumentException' ); + $this->setExpectedException( InvalidArgumentException::class ); $factory->register( 'invalid', 'Invalid', 'Invalid callback' ); } @@ -20,7 +20,7 @@ class SkinFactoryTest extends MediaWikiTestCase { */ public function testMakeSkinWithNoBuilders() { $factory = new SkinFactory(); - $this->setExpectedException( 'SkinException' ); + $this->setExpectedException( SkinException::class ); $factory->makeSkin( 'nobuilderregistered' ); } @@ -32,7 +32,7 @@ class SkinFactoryTest extends MediaWikiTestCase { $factory->register( 'unittest', 'Unittest', function () { return true; // Not a Skin object } ); - $this->setExpectedException( 'UnexpectedValueException' ); + $this->setExpectedException( UnexpectedValueException::class ); $factory->makeSkin( 'unittest' ); } @@ -46,8 +46,8 @@ class SkinFactoryTest extends MediaWikiTestCase { } ); $skin = $factory->makeSkin( 'testfallback' ); - $this->assertInstanceOf( 'Skin', $skin ); - $this->assertInstanceOf( 'SkinFallback', $skin ); + $this->assertInstanceOf( Skin::class, $skin ); + $this->assertInstanceOf( SkinFallback::class, $skin ); $this->assertEquals( 'fallback', $skin->getSkinName() ); }