From ce063ac7054effcde89406dc97dd508464bce5fe Mon Sep 17 00:00:00 2001 From: Fomafix Date: Tue, 12 Mar 2019 10:17:52 +0100 Subject: [PATCH] ULSJsonMessageLoaderTest: Expect a generic Exception This allows to change from MWException to Wikimedia\Assert\ParameterTypeException by I8287118cf8ec01326ead9c90a38f7b4134c3eba9. Change-Id: Ib0cb388958cf720052ca6df73d5145b7ab3f9529 --- tests/phpunit/ULSJsonMessageLoaderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/ULSJsonMessageLoaderTest.php b/tests/phpunit/ULSJsonMessageLoaderTest.php index 817f2500..9cec98ae 100644 --- a/tests/phpunit/ULSJsonMessageLoaderTest.php +++ b/tests/phpunit/ULSJsonMessageLoaderTest.php @@ -16,14 +16,14 @@ class ULSJsonMessageLoaderTest extends \PHPUnit\Framework\TestCase { public function testGetFilenamesWithBadInput() { $instance = new ULSJsonMessageLoader(); - $this->setExpectedException( \MWException::class ); + $this->setExpectedException( \Exception::class ); $instance->getFilenames( null ); } public function testGetMessagesWithBadInput() { $instance = new ULSJsonMessageLoader(); - $this->setExpectedException( \MWException::class ); + $this->setExpectedException( \Exception::class ); $instance->getMessages( null ); }