PHP Class Kraken\_Unit\Network\Http\Driver\Reader\HttpReaderTest

Inheritance: extends Kraken\Test\TUnit
Show file Open project: kraken-php/framework

Public Methods

Method Description
createParser ( string[] | null $methods = [] ) : HttpParser | PHPUnit_Framework_MockObject_MockObject
createReader ( mixed[] $options = [] ) : HttpReader
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiReadRequest_CallsMethodOnModel_WhenEOMIsFound ( )
testApiReadRequest_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached ( )
testApiReadRequest_ThrowsException_WhenParserThrowsException ( )
testApiReadResponse_CallsMethodOnModel_WhenEOMIsFound ( )
testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached ( )
testApiReadResponse_ThrowsException_WhenParserThrowsException ( )

Method Details

createParser() public method

public createParser ( string[] | null $methods = [] ) : HttpParser | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
return Kraken\Network\Http\Driver\Parser\HttpParser | PHPUnit_Framework_MockObject_MockObject

createReader() public method

public createReader ( mixed[] $options = [] ) : HttpReader
$options mixed[]
return Kraken\Network\Http\Driver\Reader\HttpReader

testApiConstructor_CreatesInstance() public method

testApiDestructor_DoesNotThrowException() public method

testApiReadRequest_CallsMethodOnModel_WhenEOMIsFound() public method

testApiReadRequest_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached() public method

testApiReadRequest_ThrowsException_WhenParserThrowsException() public method

testApiReadResponse_CallsMethodOnModel_WhenEOMIsFound() public method

testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached() public method

testApiReadResponse_ThrowsException_WhenParserThrowsException() public method