diff --git a/tests/TestCase/Http/Client/Adapter/CurlTest.php b/tests/TestCase/Http/Client/Adapter/CurlTest.php index b10507a8156..453f32d578a 100644 --- a/tests/TestCase/Http/Client/Adapter/CurlTest.php +++ b/tests/TestCase/Http/Client/Adapter/CurlTest.php @@ -254,7 +254,9 @@ public function testBuildOptionsProxy() { $options = [ 'proxy' => [ - 'proxy' => '127.0.0.1:8080' + 'proxy' => '127.0.0.1:8080', + 'username' => 'frodo', + 'password' => 'one_ring', ] ]; $request = new Request('http://localhost/things', 'GET'); @@ -271,6 +273,7 @@ public function testBuildOptionsProxy() CURLOPT_HTTPGET => true, CURLOPT_CAINFO => $this->caFile, CURLOPT_PROXY => '127.0.0.1:8080', + CURLOPT_PROXYUSERPWD => 'frodo:one_ring', ]; $this->assertSame($expected, $result); }