Skip to content

Commit b555fca

Browse files
committed
Set Xdebug's stack limit to 256 for legacy PHP
1 parent 6994664 commit b555fca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/FunctionalResolverTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ public function testResolveInvalidRejects()
119119

120120
public function testResolveCancelledRejectsImmediately()
121121
{
122+
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
123+
ini_set('xdebug.max_nesting_level', 256);
124+
122125
$ex = $this->callback(function ($param) {
123126
return ($param instanceof \RuntimeException && $param->getMessage() === 'DNS query for google.com has been cancelled');
124127
});

0 commit comments

Comments
 (0)