We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab4b57 commit 575a282Copy full SHA for 575a282
test/lib/Elastica/Test/Transport/HttpTest.php
@@ -155,12 +155,12 @@ public function testWithEnabledEnvironmentalProxy()
155
{
156
putenv('http_proxy=' . $this->_getProxyUrl() . '/');
157
158
- $client = $this->_getClient();
+ $client = new \Elastica\Client();
159
160
$transferInfo = $client->request('/_nodes')->getTransferInfo();
161
$this->assertEquals(403, $transferInfo['http_code']);
162
163
164
$client->getConnection()->setProxy('');
165
166
$this->assertEquals(200, $transferInfo['http_code']);
0 commit comments