Skip to content

Commit d3ae31d

Browse files
committed
ErrorHandlerTest update
1 parent 9e3d374 commit d3ae31d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/ErrorHandler/ErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ public function testThrowErrorException()
569569
$trace = $exception->getTrace();
570570
self::assertSame($errorVals['file'], $trace[1]['file']);
571571
self::assertSame($backtraceLine, $trace[1]['line']);
572-
PHP_VERSION_ID >= 70000 && PHP_VERSION_ID < 80500
572+
PHP_VERSION_ID >= 70000 && \bdk\Backtrace\Xdebug::isXdebugFuncStackAvail()
573573
? self::assertSame('bdk\\Test\\ErrorHandler\\ErrorHandlerTest->raiseError', $trace[1]['function'])
574574
: self::assertSame('bdk\\Test\\ErrorHandler\\AbstractTestCase->raiseError', $trace[1]['function']);
575575
self::assertSame(__CLASS__ . '->' . __FUNCTION__, $trace[2]['function']);

0 commit comments

Comments
 (0)