mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
add memory optimisation for Backtrace::testFile()
This commit is contained in:
@ -25,7 +25,7 @@ final class Backtrace
|
|||||||
{
|
{
|
||||||
$current = null;
|
$current = null;
|
||||||
|
|
||||||
foreach (debug_backtrace() as $trace) {
|
foreach (debug_backtrace(self::BACKTRACE_OPTIONS) as $trace) {
|
||||||
if (Str::endsWith($trace[self::FILE], (string) realpath('vendor/phpunit/phpunit/src/Util/FileLoader.php'))) {
|
if (Str::endsWith($trace[self::FILE], (string) realpath('vendor/phpunit/phpunit/src/Util/FileLoader.php'))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user