Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
Closed
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
16 changes: 8 additions & 8 deletions tests/ZendTest/Http/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