MediaWiki master
MediaWiki\Maintenance\MaintenanceFatalError Class Reference

Exception thrown by Maintenance::fatalError if called during PHPUnit tests. More...

Inherits Exception.

Collaboration diagram for MediaWiki\Maintenance\MaintenanceFatalError:

Public Member Functions

 __construct ( $code)
 

Detailed Description

Exception thrown by Maintenance::fatalError if called during PHPUnit tests.

This is done because calling exit() would cause the test suite to stop early.

Since
1.43

Definition at line 13 of file MaintenanceFatalError.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Maintenance\MaintenanceFatalError::__construct ( $code)
Parameters
int$codeThe error code that would have been passed to exit() if the method was not called during a PHPUnit test.

Definition at line 18 of file MaintenanceFatalError.php.


The documentation for this class was generated from the following file: