mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat: improves dumper
This commit is contained in:
@ -40,13 +40,7 @@ final class Kernel
|
||||
private readonly Application $application,
|
||||
private readonly OutputInterface $output,
|
||||
) {
|
||||
register_shutdown_function(function (): void {
|
||||
if (error_get_last() !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->shutdown();
|
||||
});
|
||||
register_shutdown_function(fn () => $this->shutdown());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -107,6 +107,7 @@ final class KernelDump
|
||||
*/
|
||||
private function isInternalError(string $output): bool
|
||||
{
|
||||
return str_contains($output, 'An error occurred inside PHPUnit.');
|
||||
return str_contains($output, 'An error occurred inside PHPUnit.')
|
||||
|| str_contains($output, 'Fatal error');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user