PHP 클래스 Prose\ExpectsHttpResponse

great for testing APIs
저자: Stuart Herbert ([email protected])
상속: extends Prose
파일 보기 프로젝트 열기: datasift/storyplayer

공개 메소드들

메소드 설명
__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 )