Skip to content

Commit d9ab654

Browse files
minor symfony#58982 [HttpClient] Remove unrelevant test (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpClient] Remove unrelevant test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Subnets argument of `NoPrivateNetworkHttpClient` is now typed so the `TypeError` cannot happen. Commits ------- f67e921 [HttpClient] Remove unrelevant test
2 parents 76df983 + f67e921 commit d9ab654

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ public function testNonCallableOnProgressCallback()
142142
$client->request('GET', $url, ['on_progress' => $customCallback]);
143143
}
144144

145-
public function testConstructor()
146-
{
147-
$this->expectException(\TypeError::class);
148-
$this->expectExceptionMessage('Argument 2 passed to "Symfony\Component\HttpClient\NoPrivateNetworkHttpClient::__construct()" must be of the type array, string or null. "int" given.');
149-
150-
new NoPrivateNetworkHttpClient(new MockHttpClient(), 3);
151-
}
152-
153145
private function getMockHttpClient(string $ipAddr, string $content)
154146
{
155147
return new MockHttpClient(new MockResponse($content, ['primary_ip' => $ipAddr]));

0 commit comments

Comments
 (0)