Debian Codegraph @

maintenance/includes/MaintenanceFatalError.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Maintenance;
4
5 use Exception;
6
7 /**
8 * Exception thrown by Maintenance::fatalError if called during PHPUnit tests. This is done because
9 * calling exit() would cause the test suite to stop early.
10 *
11 * @since 1.43
12 */
13 class MaintenanceFatalError extends Exception {
14 /**
15 * @param int $code The error code that would have been passed to exit() if the method was not
16 * called during a PHPUnit test.
17 */
18 public function __construct( $code ) {
19 parent::__construct( "", $code );
20 }
21 }