Skip to content

Commit e7bd3b5

Browse files
committed
Under HHVM skip tests depended on PHP builtin server.
1 parent f4f6a19 commit e7bd3b5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/CurlHttpClientTestCase.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ abstract class CurlHttpClientTestCase extends HttpClientTest
1919
*/
2020
public function testSendRequest($method, $uri, array $headers, $body)
2121
{
22+
if (defined('HHVM_VERSION')) {
23+
static::markTestSkipped('This test can not run under HHVM');
24+
}
2225
if (null !== $body && !in_array($method, ['OPTIONS', 'POST', 'PUT'], true)) {
2326
static::markTestSkipped('cURL can not send body using ' . $method);
24-
return;
2527
}
2628
parent::testSendRequest(
2729
$method,
@@ -41,9 +43,11 @@ public function testSendRequestWithOutcome(
4143
array $headers,
4244
$body
4345
) {
46+
if (defined('HHVM_VERSION')) {
47+
static::markTestSkipped('This test can not run under HHVM');
48+
}
4449
if (null !== $body) {
4550
static::markTestSkipped('cURL can not send body using GET');
46-
return;
4751
}
4852
parent::testSendRequestWithOutcome(
4953
$uriAndOutcome,

0 commit comments

Comments
 (0)