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