PHP Class eZ\Publish\Core\REST\Client\Tests\HttpClient\StreamTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$client eZ\Publish\Core\REST\Client\HttpClient\Stream

Public Methods

Method Description
setUp ( ) Sets up the testing environment.
testConnectionException ( ) Tests that ConnectionException is thrown.
testResponseHeadersArray ( ) Tests presence of response headers.
testResponseNonEmptyBody ( ) Tests that the response body is not empty.
testResponseStatus ( ) Tests the response status.
testResponseXPoweredByHeader ( ) Test presence of X-Powered-By header.

Method Details

setUp() public method

Sets up the testing environment.
public setUp ( )

testConnectionException() public method

Tests that ConnectionException is thrown.

testResponseHeadersArray() public method

Tests presence of response headers.

testResponseNonEmptyBody() public method

Tests that the response body is not empty.

testResponseStatus() public method

Tests the response status.
public testResponseStatus ( )

testResponseXPoweredByHeader() public method

Test presence of X-Powered-By header.

Property Details

$client protected property

protected Stream,eZ\Publish\Core\REST\Client\HttpClient $client
return eZ\Publish\Core\REST\Client\HttpClient\Stream