From d9401a5c1be1ed967ee4d94187371cedfe1e8d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 11 Jul 2021 14:57:54 +0200 Subject: [PATCH] Work around failing tests on legacy PHP 5.3 --- tests/Client/FunctionalIntegrationTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Client/FunctionalIntegrationTest.php b/tests/Client/FunctionalIntegrationTest.php index 2db75b35..3e07803a 100644 --- a/tests/Client/FunctionalIntegrationTest.php +++ b/tests/Client/FunctionalIntegrationTest.php @@ -83,6 +83,9 @@ public function testRequestLegacyHttpServerWithOnlyLineFeedReturnsSuccessfulResp /** @group internet */ public function testSuccessfulResponseEmitsEnd() { + // 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); + $loop = Factory::create(); $client = new Client($loop); @@ -106,6 +109,9 @@ public function testPostDataReturnsData() $this->markTestSkipped('Not supported on HHVM'); } + // 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); + $loop = Factory::create(); $client = new Client($loop);