Skip to content

Commit 6eeca7f

Browse files
committed
Add proxy url function
1 parent 4fecfda commit 6eeca7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/Elastica/Test/Transport/HttpTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function testWithEnvironmentalProxy()
153153

154154
public function testWithEnabledEnvironmentalProxy()
155155
{
156-
putenv('http_proxy=http://127.0.0.1:12346/');
156+
putenv('http_proxy=' . $this->_getProxyUrl403() . '/');
157157
$client = $this->_getClient();
158158
$transferInfo = $client->request('/_nodes')->getTransferInfo();
159159
$this->assertEquals(403, $transferInfo['http_code']);

0 commit comments

Comments
 (0)