Skip to content

Commit

Permalink
Work around failing tests on legacy PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Jul 11, 2021
1 parent 6b1a826 commit d9401a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Client/FunctionalIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit d9401a5

Please sign in to comment.