Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [Cache] Improve `dbindex` DSN parameter parsing
  Support for PHP-CS-Fixer's parallel runner
  use more entropy with uniqid()
  [Contracts][HttpClient] Skip tests when zlib's `ob_gzhandler()` doesn't exist
  • Loading branch information
xabbuh committed Jul 15, 2024
2 parents 0cdf28f + ed17728 commit b5e498f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/HttplugClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public static function tearDownAfterClass(): void
TestHttpServer::stop();
}

/**
* @requires function ob_gzhandler
*/
public function testSendRequest()
{
$client = new HttplugClient(new NativeHttpClient());
Expand All @@ -51,6 +54,9 @@ public function testSendRequest()
$this->assertSame('HTTP/1.1', $body['SERVER_PROTOCOL']);
}

/**
* @requires function ob_gzhandler
*/
public function testSendAsyncRequest()
{
$client = new HttplugClient(new NativeHttpClient());
Expand Down
3 changes: 3 additions & 0 deletions Tests/Psr18ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public static function tearDownAfterClass(): void
TestHttpServer::stop();
}

/**
* @requires function ob_gzhandler
*/
public function testSendRequest()
{
$factory = new Psr17Factory();
Expand Down

0 comments on commit b5e498f

Please sign in to comment.