diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2019-10-11 15:22:26 -0700 |
---|---|---|
committer | Max Semenik <maxsem.wiki@gmail.com> | 2019-10-14 12:48:48 -0700 |
commit | 83d76f4cb5d853f6479a346419d1f2f07fdb45d2 (patch) | |
tree | 9e7bcc1b1404c4d8579b494466363940ea3af775 /tests/phpunit/includes/exception/MWExceptionTest.php | |
parent | a03feb8ab05c29ecdf9905dd950986d82ec1590e (diff) | |
download | mediawikicore-83d76f4cb5d853f6479a346419d1f2f07fdb45d2.tar.gz mediawikicore-83d76f4cb5d853f6479a346419d1f2f07fdb45d2.zip |
phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass
Change-Id: I63f97497714a32236268be6965c5e181dade6c58
Diffstat (limited to 'tests/phpunit/includes/exception/MWExceptionTest.php')
-rw-r--r-- | tests/phpunit/includes/exception/MWExceptionTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/exception/MWExceptionTest.php b/tests/phpunit/includes/exception/MWExceptionTest.php index b16055490cdf..14270af6abcb 100644 --- a/tests/phpunit/includes/exception/MWExceptionTest.php +++ b/tests/phpunit/includes/exception/MWExceptionTest.php @@ -9,10 +9,10 @@ class MWExceptionTest extends MediaWikiTestCase { /** - * @expectedException MWException * @covers MWException */ public function testMwexceptionThrowing() { + $this->expectException( MWException::class ); throw new MWException(); } |