Skip to content

Commit

Permalink
Add a test for curl proxy user.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 9, 2018
1 parent 892111f commit 2de8cd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/TestCase/Http/Client/Adapter/CurlTest.php
Expand Up @@ -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');
Expand All @@ -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);
}
Expand Down

0 comments on commit 2de8cd8

Please sign in to comment.