Skip to content

Commit d9401a5

Browse files
committed
Work around failing tests on legacy PHP 5.3
1 parent 6b1a826 commit d9401a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Client/FunctionalIntegrationTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ public function testRequestLegacyHttpServerWithOnlyLineFeedReturnsSuccessfulResp
8383
/** @group internet */
8484
public function testSuccessfulResponseEmitsEnd()
8585
{
86+
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
87+
ini_set('xdebug.max_nesting_level', 256);
88+
8689
$loop = Factory::create();
8790
$client = new Client($loop);
8891

@@ -106,6 +109,9 @@ public function testPostDataReturnsData()
106109
$this->markTestSkipped('Not supported on HHVM');
107110
}
108111

112+
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
113+
ini_set('xdebug.max_nesting_level', 256);
114+
109115
$loop = Factory::create();
110116
$client = new Client($loop);
111117

0 commit comments

Comments
 (0)