File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,15 @@ protected function _getPort()
46
46
*/
47
47
protected function _getProxyUrl ()
48
48
{
49
- return "http://127.0.0.1:12346 " ;
49
+ return "http://127.0.0.1:12345 " ;
50
+ }
51
+
52
+ /**
53
+ * @return string Proxy url string to proxy which returns 403
54
+ */
55
+ protected function _getProxyUrl403 ()
56
+ {
57
+ return "http://127.0.0.1:12345 " ;
50
58
}
51
59
52
60
/**
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function testWithEnvironmentalProxy()
97
97
98
98
public function testWithEnabledEnvironmentalProxy ()
99
99
{
100
- putenv ('http_proxy= ' . $ this ->_getProxyUrl () . '/ ' );
100
+ putenv ('http_proxy= ' . $ this ->_getProxyUrl403 () . '/ ' );
101
101
102
102
$ client = $ this ->_getClient (array ('transport ' => 'Guzzle ' , 'persistent ' => false ));
103
103
$ transferInfo = $ client ->request ('/_nodes ' )->getTransferInfo ();
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public function testWithEnvironmentalProxy()
153
153
154
154
public function testWithEnabledEnvironmentalProxy ()
155
155
{
156
- putenv ('http_proxy=http:// ' . $ this ->_getProxyUrl () . '/ ' );
156
+ putenv ('http_proxy=http:// ' . $ this ->_getProxyUrl403 () . '/ ' );
157
157
158
158
$ client = new \Elastica \Client ();
159
159
You can’t perform that action at this time.
0 commit comments