PHP Class Kraken\_Module\Network\Http\HttpRouterTest

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

Public Methods

Method Description
createClient ( Kraken\Loop\LoopInterface $loop ) : Socket
createComponent ( ) : ComponentMock
createHttpMessage ( string $method, string $uri, string[] $headers, string $body ) : string
createServer ( Kraken\Loop\LoopInterface $loop ) : HttpRouter
tearDown ( )
testHttpRouter_HandlesIncomingHTTPMessages ( )

Method Details

createClient() public method

public createClient ( Kraken\Loop\LoopInterface $loop ) : Socket
$loop Kraken\Loop\LoopInterface
return Kraken\Ipc\Socket\Socket

createComponent() public method

public createComponent ( ) : ComponentMock
return Kraken\_Module\Network\_Mock\ComponentMock

createHttpMessage() public method

public createHttpMessage ( string $method, string $uri, string[] $headers, string $body ) : string
$method string
$uri string
$headers string[]
$body string
return string

createServer() public method

public createServer ( Kraken\Loop\LoopInterface $loop ) : HttpRouter
$loop Kraken\Loop\LoopInterface
return Kraken\Network\Http\Component\Router\HttpRouter

tearDown() public method

public tearDown ( )

testHttpRouter_HandlesIncomingHTTPMessages() public method