PHP Класс Prose\ExpectsHttpResponse

great for testing APIs
Автор: Stuart Herbert ([email protected])
Наследование: extends Prose
Показать файл Открыть проект

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

Метод Описание
__construct ( StoryTeller $st, $params ) DO NOT TYPEHINT $response!!
hasBody ( $expectedBody )
hasStatusCode ( $status )

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

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

Although it is extra work for us, if we use typehinting here, then we get a failure in the PHP engine (which is harder to handle). It's currently considered to be better if we detect the error ourselves.
public __construct ( StoryTeller $st, $params )
$st DataSift\Storyplayer\PlayerLib\StoryTeller [description]

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

public hasBody ( $expectedBody )

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

public hasStatusCode ( $status )