X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsite%2FSiteExporterTest.php;h=3a41b5fc6972e69ff813a890c05835d7bf3225bf;hp=09cdea7a08c7528fb570a0b0ac9c455502ea5af4;hb=6b3e5511fb848890f174690885e748b90389c0b8;hpb=9bf44d08f938cc9a85dc647b8a00665d5bd01fb6 diff --git a/tests/phpunit/includes/site/SiteExporterTest.php b/tests/phpunit/includes/site/SiteExporterTest.php index 09cdea7a08..3a41b5fc69 100644 --- a/tests/phpunit/includes/site/SiteExporterTest.php +++ b/tests/phpunit/includes/site/SiteExporterTest.php @@ -34,7 +34,7 @@ class SiteExporterTest extends PHPUnit_Framework_TestCase { use MediaWikiCoversValidator; public function testConstructor_InvalidArgument() { - $this->setExpectedException( 'InvalidArgumentException' ); + $this->setExpectedException( InvalidArgumentException::class ); new SiteExporter( 'Foo' ); } @@ -77,7 +77,7 @@ class SiteExporterTest extends PHPUnit_Framework_TestCase { } private function newSiteStore( SiteList $sites ) { - $store = $this->getMockBuilder( 'SiteStore' )->getMock(); + $store = $this->getMockBuilder( SiteStore::class )->getMock(); $store->expects( $this->once() ) ->method( 'saveSites' )