Skip to content

Commit

Permalink
Assertion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyshockov committed Oct 22, 2019
1 parent b49ff1d commit 17a6117
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/Handler/CurlMultiHandlerTest.php
Expand Up @@ -25,14 +25,10 @@ public function testCanAddCustomCurlOptions()
Server::flush();
Server::enqueue([new Response()]);
$a = new CurlMultiHandler(['options' => [
// "1" will raise an error "curl_multi_setopt(): CURLPIPE_HTTP1 is deprecated" on PHP 7.4+, see the docs
// CURLMOPT_PIPELINING => 1,
CURLMOPT_PIPELINING => CURLPIPE_MULTIPLEX,
CURLMOPT_MAXCONNECTS => 5,
]]);
$request = new Request('GET', Server::$url);
$a($request, []);
$this->assertEquals(1, $_SERVER['_curl_multi'][CURLMOPT_PIPELINING]);
$this->assertEquals(5, $_SERVER['_curl_multi'][CURLMOPT_MAXCONNECTS]);
}

Expand Down

0 comments on commit 17a6117

Please sign in to comment.