diff options
author | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2023-12-14 17:28:48 +0100 |
---|---|---|
committer | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2024-01-10 16:38:43 +0100 |
commit | 825bf602a569a271daee5a11fa0f245b70df274c (patch) | |
tree | 2269fa4111863824d148e1d48faf04640763047b /tests/phpunit/includes/exception/BadTitleErrorTest.php | |
parent | 4f434bbfd331a5e8734a70885ba3679c09dca723 (diff) | |
download | mediawikicore-825bf602a569a271daee5a11fa0f245b70df274c.tar.gz mediawikicore-825bf602a569a271daee5a11fa0f245b70df274c.zip |
Deprecate error printing in MWException
It's now deprecated to use the individual error printing functions in
MWException or to override them. Printing MWException now works the
same as any other exception, and happens in MWExceptionRenderer.
It's still allowed to override MWException::report() to replace the
entire error page, for example in ErrorPageError.
Bug: T353444
Change-Id: I66d896f6f229b90e6ba9949311b56a6b6ab3da3d
Diffstat (limited to 'tests/phpunit/includes/exception/BadTitleErrorTest.php')
-rw-r--r-- | tests/phpunit/includes/exception/BadTitleErrorTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/phpunit/includes/exception/BadTitleErrorTest.php b/tests/phpunit/includes/exception/BadTitleErrorTest.php index 264c2d7101c0..a38a8f9a245b 100644 --- a/tests/phpunit/includes/exception/BadTitleErrorTest.php +++ b/tests/phpunit/includes/exception/BadTitleErrorTest.php @@ -21,6 +21,7 @@ class BadTitleErrorTest extends MediaWikiIntegrationTestCase { ob_start(); $e->report(); $text = ob_get_clean(); + $this->expectDeprecationAndContinue( '/MWException::getText was deprecated/' ); $this->assertStringContainsString( $e->getText(), $text ); } } |