diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-10-05 17:42:53 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-10-05 16:14:05 +0000 |
commit | ef5ab69629dc3339b808376b189083838656efbe (patch) | |
tree | e555d181fa6969c48f325d59faebe7aadcdeead5 /tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php | |
parent | 98fcdd8f7d5100d1c327b7823ec8609a355ba45e (diff) | |
download | mediawikicore-ef5ab69629dc3339b808376b189083838656efbe.tar.gz mediawikicore-ef5ab69629dc3339b808376b189083838656efbe.zip |
Replace setExpectedException with two args
Find: ^(\t*)(\$this->)setExpectedException\(\s+(\\?[a-z\\]+::class),\s+('(?:[^'\\]|\\')+'|"(?:[^"\\]|\\")+")\s+\);
Replace: $1$2expectException( $3 );\n$1\$this->expectExceptionMessage( $4 );
+broke long lines manually.
Bug: T192167
Change-Id: I5557b4372625def55a53ac637c2f980f51f12933
Diffstat (limited to 'tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php')
-rw-r--r-- | tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php index 60b40736d9c4..b186014b1ddc 100644 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php +++ b/tests/phpunit/includes/resourceloader/ResourceLoaderModuleTest.php @@ -73,7 +73,8 @@ class ResourceLoaderModuleTest extends ResourceLoaderTestCase { ->setMethods( [ 'getDefinitionSummary' ] )->getMock(); $module->method( 'getDefinitionSummary' )->willReturn( [ 'a' => 'summary' ] ); - $this->setExpectedException( LogicException::class, 'must call parent' ); + $this->expectException( LogicException::class ); + $this->expectExceptionMessage( 'must call parent' ); $module->getVersionHash( $context ); } |