|
MediaWiki master
|
Exception thrown by Maintenance::fatalError if called during PHPUnit tests. More...
Inherits Exception.

Public Member Functions | |
| __construct (string $msg, int $code) | |
Exception thrown by Maintenance::fatalError if called during PHPUnit tests.
This is done because calling exit() would cause the test suite to stop early. Use MaintenanceBaseTestCase::expectCallToFatalError() in test cases.
Definition at line 14 of file MaintenanceFatalError.php.
| MediaWiki\Maintenance\MaintenanceFatalError::__construct | ( | string | $msg, |
| int | $code ) |
| string | $msg | a string to record in the logs about what went wrong |
| int | $code | The error code that would have been passed to exit() if the method was not called during a PHPUnit test. |
Definition at line 20 of file MaintenanceFatalError.php.