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

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#7023-test-config-con…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 16, 2014
2 parents 71f5cac + 1f31c6e commit 53882d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/Client/StaticTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function testGetLastRawResponseWhenNotStoring()
*/
public function testInvalidPostContentType()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->setExpectedException(
Expand All @@ -342,7 +342,7 @@ public function testInvalidPostContentType()
*/
public function testSocketErrorException()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->setExpectedException(
Expand Down Expand Up @@ -381,7 +381,7 @@ public function testSettingInvalidMethodThrowsException($method)
*/
public function testFormDataEncodingWithMultiArrayZF7038()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->_client->setAdapter('Zend\Http\Client\Adapter\Test');
Expand Down Expand Up @@ -427,7 +427,7 @@ public function testFormDataEncodingWithMultiArrayZF7038()
*/
public function testMultibyteRawPostDataZF2098()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->_client->setAdapter('Zend\Http\Client\Adapter\Test');
Expand Down Expand Up @@ -455,7 +455,7 @@ public function testMultibyteRawPostDataZF2098()
*/
public function testOpenTempStreamWithValidFileDoesntThrowsException()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$url = 'http://www.example.com/';
Expand All @@ -478,7 +478,7 @@ public function testOpenTempStreamWithValidFileDoesntThrowsException()
*/
public function testOpenTempStreamWithBogusFileClosesTheConnection()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->setExpectedException(
Expand All @@ -501,7 +501,7 @@ public function testOpenTempStreamWithBogusFileClosesTheConnection()
*/
public function testEncodedCookiesInRequestHeaders()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->_client->addCookie('foo', 'bar=baz');
Expand All @@ -518,7 +518,7 @@ public function testEncodedCookiesInRequestHeaders()
*/
public function testRawCookiesInRequestHeaders()
{
if (!constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
if (!defined('TESTS_ZEND_HTTP_CLIENT_ONLINE') || !constant('TESTS_ZEND_HTTP_CLIENT_ONLINE')) {
$this->markTestSkipped('Zend\Http\Client online tests are not enabled');
}
$this->_client->setOptions(array('encodecookies' => false));
Expand Down

0 comments on commit 53882d7

Please sign in to comment.