PHP 클래스 Kraken\_Unit\Network\Http\Driver\Parser\HttpParserTest

상속: extends Kraken\Test\TUnit
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
createParser ( ) : HttpParser
createRequest ( string $method, string $uri, string[] $headers = [], string $body = null, string $version = '1.1' ) : HttpRequest
createResponse ( integer $status = 200, string[] $headers = [], string $body = null, string $version = '1.1' ) : HttpResponse
testApiConstructor_CreatesInstance ( )
testApiDestructor_DoesNotThrowException ( )
testApiParseRequest_CreatesRequestFromString ( )
testApiParseRequest_ThrowsException_OnInvalidFormat ( )
testApiParseResponse_CreatesResponseFromString ( )
testApiParseResponse_ThrowsException_OnInvalidFormat ( )

메소드 상세

createParser() 공개 메소드

public createParser ( ) : HttpParser
리턴 Kraken\Network\Http\Driver\Parser\HttpParser

createRequest() 공개 메소드

public createRequest ( string $method, string $uri, string[] $headers = [], string $body = null, string $version = '1.1' ) : HttpRequest
$method string
$uri string
$headers string[]
$body string
$version string
리턴 Kraken\Network\Http\HttpRequest

createResponse() 공개 메소드

public createResponse ( integer $status = 200, string[] $headers = [], string $body = null, string $version = '1.1' ) : HttpResponse
$status integer
$headers string[]
$body string
$version string
리턴 Kraken\Network\Http\HttpResponse

testApiConstructor_CreatesInstance() 공개 메소드

testApiDestructor_DoesNotThrowException() 공개 메소드

testApiParseRequest_CreatesRequestFromString() 공개 메소드

testApiParseRequest_ThrowsException_OnInvalidFormat() 공개 메소드

testApiParseResponse_CreatesResponseFromString() 공개 메소드

testApiParseResponse_ThrowsException_OnInvalidFormat() 공개 메소드