1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sun, 12 Jan 2025 17:36:38 +0100
Subject: Drop test currently failing on buildd
---
.../HttpClient/Tests/HttpClientTraitTest.php | 39 ----------------------
1 file changed, 39 deletions(-)
diff --git a/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php b/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
index 0836ad6..87ef918 100644
--- a/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
+++ b/src/Symfony/Component/HttpClient/Tests/HttpClientTraitTest.php
@@ -112,45 +112,6 @@ class HttpClientTraitTest extends TestCase
$this->assertSame($expected, $result);
}
- /**
- * @group network
- *
- * @requires extension openssl
- *
- * @dataProvider provideNormalizeBodyMultipartForwardStream
- */
- public function testNormalizeBodyMultipartForwardStream($stream)
- {
- $body = [
- 'logo' => $stream,
- ];
-
- $headers = [];
- $body = self::normalizeBody($body, $headers);
-
- $result = '';
- while ('' !== $data = $body(self::$CHUNK_SIZE)) {
- $result .= $data;
- }
-
- $this->assertSame(1, preg_match('/^Content-Type: multipart\/form-data; boundary=(?<boundary>.+)$/', $headers['content-type'][0], $matches));
- $this->assertSame('Content-Length: 3086', $headers['content-length'][0]);
- $this->assertSame(3086, \strlen($result));
-
- $expected = <<<EOF
- --{$matches['boundary']}
- Content-Disposition: form-data; name="logo"; filename="1f44d.png"
- Content-Type: image/png
-
- %A
- --{$matches['boundary']}--
-
- EOF;
- $expected = str_replace("\n", "\r\n", $expected);
-
- $this->assertStringMatchesFormat($expected, $result);
- }
-
public static function provideNormalizeBodyMultipartForwardStream()
{
if (!\extension_loaded('openssl')) {
|