8000 minor #58469 [HttpClient] fix tests (xabbuh) · symfony/symfony@7431ef8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7431ef8

Browse files
committed
minor #58469 [HttpClient] fix tests (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [HttpClient] fix tests | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT The data provider was depending on the openssl extension being present. see https://ci.appveyor.com/project/fabpot/symfony/builds/50740623#L1903 Commits ------- 3c58e47 fix tests
2 parents 1538b4a + 3c58e47 commit 7431ef8

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