PHP Class Prose\ExpectsHttpResponse

great for testing APIs
Inheritance: extends Prose
Afficher le fichier Open project: datasift/storyplayer

Méthodes publiques

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

Method Details

__construct() public méthode

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 méthode

public hasBody ( $expectedBody )

hasStatusCode() public méthode

public hasStatusCode ( $status )