8000 fix tests · symfony/symfony@3c58e47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c58e47

Browse files
committed
fix tests
The data provider was depending on the openssl extension being present.
1 parent 4a9c2e8 commit 3c58e47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function testNormalizeBodyMultipart()
122122
public function testNormalizeBodyMultipartForwardStream($stream)
123123
{
124124
$body = [
125-
'logo' => $stream,
125+
'logo' => $stream(),
126126
];
127127

128128
$headers = [];
@@ -153,8 +153,8 @@ public function testNormalizeBodyMultipartForwardStream($stream)
153153

154154
public static function provideNormalizeBodyMultipartForwardStream()
155155
{
156-
yield 'native' => [fopen('https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png', 'r')];
157-
yield 'symfony' => [HttpClient::create()->request('GET', 'https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png')->toStream()];
156+
yield 'native' => [static fn () => fopen('https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png', 'r')];
157+
yield 'symfony' => [static fn () => HttpClient::create()->request('GET', 'https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png')->toStream()];
158158
}
159159

160160
/**

0 commit comments

Comments
 (0)
0