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/languages/LanguageTest.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/languages/LanguageTest.php')
-rw-r--r-- | tests/phpunit/languages/LanguageTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/languages/LanguageTest.php b/tests/phpunit/languages/LanguageTest.php index 6ef4c0b4412d..22a9a269451a 100644 --- a/tests/phpunit/languages/LanguageTest.php +++ b/tests/phpunit/languages/LanguageTest.php @@ -530,28 +530,28 @@ class LanguageTest extends LanguageClassesTestCase { /** * Test too short timestamp - * @expectedException MWException * @covers Language::sprintfDate */ public function testSprintfDateTooShortTimestamp() { + $this->expectException( MWException::class ); $this->getLang()->sprintfDate( 'xiY', '1234567890123' ); } /** * Test too long timestamp - * @expectedException MWException * @covers Language::sprintfDate */ public function testSprintfDateTooLongTimestamp() { + $this->expectException( MWException::class ); $this->getLang()->sprintfDate( 'xiY', '123456789012345' ); } /** * Test too short timestamp - * @expectedException MWException * @covers Language::sprintfDate */ public function testSprintfDateNotAllDigitTimestamp() { + $this->expectException( MWException::class ); $this->getLang()->sprintfDate( 'xiY', '-1234567890123' ); } |