Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 03864a9

Browse files
committed
Merge branch 'hotfix/108' into develop
Forward port #108
2 parents 0e50aeb + 257640e commit 03864a9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/Client/CommonHttpTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ abstract class CommonHttpTests extends \PHPUnit_Framework_TestCase
7676
protected function setUp()
7777
{
7878
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
79-
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)) {
79+
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)) {
8080
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
8181
if (substr($this->baseuri, -1) != '/') {
8282
$this->baseuri .= '/';

test/Client/ProxyAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ProxyAdapterTest extends SocketTest
3535
protected function setUp()
3636
{
3737
if (getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY') &&
38-
getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY')) {
38+
filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN)) {
3939
list($host, $port) = explode(':', getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY'), 2);
4040

4141
if (! $host) {

test/Client/StaticClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class StaticClientTest extends \PHPUnit_Framework_TestCase
3333
protected function setUp()
3434
{
3535
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
36-
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)) {
36+
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)) {
3737
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
3838
if (substr($this->baseuri, -1) != '/') {
3939
$this->baseuri .= '/';

test/Client/UseCaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class UseCaseTest extends \PHPUnit_Framework_TestCase
5858
protected function setUp()
5959
{
6060
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
61-
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)
61+
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)
6262
) {
6363
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
6464
$this->client = new HTTPClient($this->baseuri);

0 commit comments

Comments
 (0)