From 8b072dbc84250a1be4f8ce808b186b80f4f5b556 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 20c904e..5cae396 100644 --- a/tests/FunctionalTest.php +++ b/tests/FunctionalTest.php @@ -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')); }