Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Classes/Core/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ protected function tearDown(): void
// Register a dummy error handler to retrieve *previous* one and unregister dummy again,
// then verify previous is the phpunit error handler. This will mark the one test that
// fails to unset/restore it's custom error handler as "risky".
$previousErrorHandler = set_error_handler(function (int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool {return false;});
$previousErrorHandler = set_error_handler(function (int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool {
return false;
});
restore_error_handler();
$phpUnitUseErrorHandler = $this->shouldErrorHandlerBeUsed();
if (($phpUnitUseErrorHandler && !$previousErrorHandler instanceof ErrorHandler)
Expand Down