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

Fixed the unit test for phpunit 4.8.33 #108

Merged
merged 1 commit into from
Jan 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Client/CommonHttpTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ abstract class CommonHttpTests extends \PHPUnit_Framework_TestCase
protected function setUp()
{
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)) {
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)) {
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
if (substr($this->baseuri, -1) != '/') {
$this->baseuri .= '/';
Expand Down
2 changes: 1 addition & 1 deletion test/Client/ProxyAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ProxyAdapterTest extends SocketTest
protected function setUp()
{
if (getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY') &&
getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY')) {
filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN)) {
list($host, $port) = explode(':', getenv('TESTS_ZEND_HTTP_CLIENT_HTTP_PROXY'), 2);

if (! $host) {
Expand Down
2 changes: 1 addition & 1 deletion test/Client/StaticClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class StaticClientTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)) {
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)) {
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
if (substr($this->baseuri, -1) != '/') {
$this->baseuri .= '/';
Expand Down
2 changes: 1 addition & 1 deletion test/Client/UseCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class UseCaseTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
if (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI')
&& (getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI') != false)
&& (filter_var(getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI'), FILTER_VALIDATE_BOOLEAN) != false)
) {
$this->baseuri = getenv('TESTS_ZEND_HTTP_CLIENT_BASEURI');
$this->client = new HTTPClient($this->baseuri);
Expand Down