PHP Класс Kraken\_Unit\Network\Http\Driver\Reader\HttpReaderTest

Наследование: extends Kraken\Test\TUnit
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Описание методов

createParser() публичный Метод

public createParser ( string[] | null $methods = [] ) : HttpParser | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Результат Kraken\Network\Http\Driver\Parser\HttpParser | PHPUnit_Framework_MockObject_MockObject

createReader() публичный Метод

public createReader ( mixed[] $options = [] ) : HttpReader
$options mixed[]
Результат Kraken\Network\Http\Driver\Reader\HttpReader

testApiConstructor_CreatesInstance() публичный Метод

testApiDestructor_DoesNotThrowException() публичный Метод

testApiReadRequest_CallsMethodOnModel_WhenEOMIsFound() публичный Метод

testApiReadRequest_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached() публичный Метод

testApiReadRequest_ThrowsException_WhenParserThrowsException() публичный Метод

testApiReadResponse_CallsMethodOnModel_WhenEOMIsFound() публичный Метод

testApiReadResponse_ThrowsException_WhenEOMIsNotFoundAndLengthLimitIsReached() публичный Метод

testApiReadResponse_ThrowsException_WhenParserThrowsException() публичный Метод