Skip to content

Commit 7dc5ff8

Browse files
committed
Set Xdebug's stack limit to 256 for legacy PHP
1 parent d9e1bc6 commit 7dc5ff8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/FunctionalTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function testConnection()
4545
/** @group internet */
4646
public function testConnectionInvalid()
4747
{
48+
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
49+
ini_set('xdebug.max_nesting_level', 256);
50+
4851
$this->assertRejectPromise($this->client->connect('www.google.com.invalid:80'));
4952
}
5053

0 commit comments

Comments
 (0)