PHP Class Prose\ExpectsHttpResponse

great for testing APIs
Inheritance: extends Prose
Show file Open project: datasift/storyplayer

Public Methods

Method Description
__construct ( StoryTeller $st, $params ) DO NOT TYPEHINT $response!!
hasBody ( $expectedBody )
hasStatusCode ( $status )

Method Details

__construct() public method

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 method

public hasBody ( $expectedBody )

hasStatusCode() public method

public hasStatusCode ( $status )