diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-06-03 17:25:27 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-06-06 17:05:32 +0200 |
commit | 1c6e872bd4963b5a043f561d70d3d3dd55be8388 (patch) | |
tree | fdbe6681db6fc418bd72e741bcd5812a19564f84 /tests/phpunit/suites | |
parent | 6f9ac8889bc5fbaab520dcc9217d4eba19ef1f5b (diff) | |
download | mediawikicore-1c6e872bd4963b5a043f561d70d3d3dd55be8388.tar.gz mediawikicore-1c6e872bd4963b5a043f561d70d3d3dd55be8388.zip |
Replace usages of deprecated MWException
Use SPL exceptions instead when the exception is unchecked.
Bug: T328220
Change-Id: Ia1e5edc2ef3269a44b670262b78b305d07559829
Diffstat (limited to 'tests/phpunit/suites')
-rw-r--r-- | tests/phpunit/suites/ParserTestFileSuite.php | 2 | ||||
-rw-r--r-- | tests/phpunit/suites/ParsoidTestFileSuite.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/suites/ParserTestFileSuite.php b/tests/phpunit/suites/ParserTestFileSuite.php index b47d13d5da90..1187f49bc0ae 100644 --- a/tests/phpunit/suites/ParserTestFileSuite.php +++ b/tests/phpunit/suites/ParserTestFileSuite.php @@ -31,7 +31,7 @@ class ParserTestFileSuite extends TestSuite { } ); } catch ( \Exception $e ) { // Friendlier wrapping for any syntax errors that might occur. - throw new MWException( + throw new RuntimeException( $fileName . ': ' . $e->getMessage() ); } diff --git a/tests/phpunit/suites/ParsoidTestFileSuite.php b/tests/phpunit/suites/ParsoidTestFileSuite.php index 15e95332de44..0cf819bd2170 100644 --- a/tests/phpunit/suites/ParsoidTestFileSuite.php +++ b/tests/phpunit/suites/ParsoidTestFileSuite.php @@ -32,7 +32,7 @@ class ParsoidTestFileSuite extends TestSuite { } ); } catch ( \Exception $e ) { // Friendlier wrapping for any syntax errors that might occur. - throw new MWException( + throw new RuntimeException( $fileName . ': ' . $e->getMessage() ); } |