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/MessageTest.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/MessageTest.php')
-rw-r--r-- | tests/phpunit/includes/MessageTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/MessageTest.php b/tests/phpunit/includes/MessageTest.php index 020ec8c34b9f..e86547bbc214 100644 --- a/tests/phpunit/includes/MessageTest.php +++ b/tests/phpunit/includes/MessageTest.php @@ -789,10 +789,10 @@ class MessageTest extends MediaWikiLangTestCase { } /** - * @expectedException MWException * @covers Message::inLanguage */ public function testInLanguageThrows() { + $this->expectException( MWException::class ); wfMessage( 'foo' )->inLanguage( 123 ); } |