Skip to content

Commit b2f7a1d

Browse files
[HttpClient] Fix test suite
1 parent 497e8cb commit b2f7a1d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/HttpClientTraitTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,11 @@ public function testNormalizeBodyMultipartForwardStream($stream)
155155

156156
public static function provideNormalizeBodyMultipartForwardStream()
157157
{
158-
yield 'native' => [fopen('https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png', 'r')];
159-
160-
if (!\defined('OPENSSL_DEFAULT_STREAM_CIPHERS')) {
161-
return;
158+
if (!\extension_loaded('openssl')) {
159+
throw self::markTestSkipped('Extension openssl required.');
162160
}
163161

162+
yield 'native' => [fopen('https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png', 'r')];
164163
yield 'symfony' => [HttpClient::create()->request('GET', 'https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png')->toStream()];
165164
}
166165

0 commit comments

Comments
 (0)