Skip to content

Commit

Permalink
Set Xdebug's stack limit to 256 for legacy PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Mar 31, 2021
1 parent 1054cf6 commit 8b072db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function testConnection()
/** @group internet */
public function testConnectionInvalid()
{
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
ini_set('xdebug.max_nesting_level', 256);

$this->assertRejectPromise($this->client->connect('www.google.com.invalid:80'));
}

Expand Down

0 comments on commit 8b072db

Please sign in to comment.