*
* @since 1.32
* @author Addshore
+ * @coversNothing
*/
class SpecialPageFatalTest extends MediaWikiTestCase {
-
- public static function setUpBeforeClass() {
- parent::setUpBeforeClass();
- self::overrideMwServices();
- }
-
- public static function tearDownAfterClass() {
- self::overrideMwServices();
- parent::tearDownAfterClass();
- }
-
public function provideSpecialPages() {
$specialPages = [];
$spf = MediaWikiServices::getInstance()->getSpecialPageFactory();
try {
$executor->executeSpecialPage( $page, '', null, null, $user );
+ } catch ( \PHPUnit\Framework\Error\Error $error ) {
+ // Let phpunit settings working:
+ // - convertErrorsToExceptions="true"
+ // - convertNoticesToExceptions="true"
+ // - convertWarningsToExceptions="true"
+ throw $error;
} catch ( Exception $e ) {
- // Exceptions are allowed
+ // Other exceptions are allowed
}
// If the page fataled phpunit will have already died