Skip to content

Commit 6643830

Browse files
[Contracts][HttpClient] Skip tests when zlib's ob_gzhandler() doesn't exist
1 parent 6827472 commit 6643830

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HttpClient/Test/HttpClientTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ abstract class HttpClientTestCase extends TestCase
2525
{
2626
public static function setUpBeforeClass(): void
2727
{
28+
if (!function_exists('ob_gzhandler')) {
29+
static::markTestSkipped('The "ob_gzhandler" function is not available.');
30+
}
31+
2832
TestHttpServer::start();
2933
}
3034

0 commit comments

Comments
 (0)