Skip to content

Commit

Permalink
[HttpClient] Remove unrelevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Nov 25, 2024
1 parent cbeefef commit d485a40
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Tests/NoPrivateNetworkHttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@ public function testNonCallableOnProgressCallback()
$client->request('GET', $url, ['on_progress' => $customCallback]);
}

public function testConstructor()
{
$this->expectException(\TypeError::class);
$this->expectExceptionMessage('Argument 2 passed to "Symfony\Component\HttpClient\NoPrivateNetworkHttpClient::__construct()" must be of the type array, string or null. "int" given.');

new NoPrivateNetworkHttpClient(new MockHttpClient(), 3);
}

private function getMockHttpClient(string $ipAddr, string $content)
{
return new MockHttpClient(new MockResponse($content, ['primary_ip' => $ipAddr]));
Expand Down

0 comments on commit d485a40

Please sign in to comment.