mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 00:37:22 +01:00
fix: adjusts backtrace for pest's internal test suite
This commit is contained in:
@ -115,6 +115,10 @@ final class Backtrace
|
||||
continue;
|
||||
}
|
||||
|
||||
if (($GLOBALS['__PEST_INTERNAL_TEST_SUITE'] ?? false) && str_contains($trace['file'], 'pest'.DIRECTORY_SEPARATOR.'src')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (str_contains($trace['file'], DIRECTORY_SEPARATOR.'pestphp'.DIRECTORY_SEPARATOR.'pest'.DIRECTORY_SEPARATOR.'src')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user