File tree Expand file tree Collapse file tree
src/Symfony/Component/HttpClient/Tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments