Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55012a3

Browse files
Add amp client proxy test symfony#3
1 parent 5ee6a80 commit 55012a3

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ public function testNonBlockingStream()
2525
parent::testNonBlockingStream();
2626
}
2727

28-
protected function getHttpClient(string $testCase): HttpClientInterface
29-
{
30-
return new AmpHttpClient(['verify_peer' => false, 'verify_host' => false, 'timeout' => 5]);
31-
}
32-
3328
public function testProxy()
3429
{
3530
$client = $this->getHttpClient(__FUNCTION__);
3631

3732
$this->expectException(TransportException::class);
38-
$this->expectExceptionMessage('Invalid address: proxy.host');
3933

4034
$client->request('GET', 'http://localhost:8888', ['proxy' => 'http://proxy.host:8000']);
4135
}
36+
37+
protected function getHttpClient(string $testCase): HttpClientInterface
38+
{
39+
return new AmpHttpClient(['verify_peer' => false, 'verify_host' => false, 'timeout' => 5]);
40+
}
4241
}

0 commit comments

Comments
 (0)