From 7dc5ff810115e7613ee7c1f78fc52f7096b6ff2f Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Tue, 30 Mar 2021 11:49:47 +0200 Subject: [PATCH] Set Xdebug's stack limit to 256 for legacy PHP --- tests/FunctionalTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/FunctionalTest.php b/tests/FunctionalTest.php index 445d1d1..ec46231 100644 --- a/tests/FunctionalTest.php +++ b/tests/FunctionalTest.php @@ -45,6 +45,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')); }