PHP 클래스 Behat\RestTestingContext\RestContext

상속: extends BaseContext
파일 보기 프로젝트 열기: deminy/behat-rest-testing

공개 메소드들

메소드 설명
fieldIsOfTypeWithValue ( string $name, string $type, string $value ) : void
getResponseBody ( ) : string
getResponseData ( ) : mixed
theResponseHasAField ( string $name ) : void
theResponseShouldBe ( string $string ) : void
theResponseShouldNotHaveAField ( string $name ) : void
valueOfTheFieldEquals ( string $name, string $value ) : void

보호된 메소드들

메소드 설명
decodeJson ( string $string ) : mixed Decode JSON string.

메소드 상세

decodeJson() 보호된 메소드

Decode JSON string.
또한 보기: http://www.php.net/json_last_error
protected decodeJson ( string $string ) : mixed
$string string A JSON string.
리턴 mixed

fieldIsOfTypeWithValue() 공개 메소드

public fieldIsOfTypeWithValue ( string $name, string $type, string $value ) : void
$name string
$type string
$value string
리턴 void

getResponseBody() 공개 메소드

public getResponseBody ( ) : string
리턴 string

getResponseData() 공개 메소드

public getResponseData ( ) : mixed
리턴 mixed

theResponseHasAField() 공개 메소드

public theResponseHasAField ( string $name ) : void
$name string
리턴 void

theResponseShouldBe() 공개 메소드

public theResponseShouldBe ( string $string ) : void
$string string
리턴 void

theResponseShouldNotHaveAField() 공개 메소드

public theResponseShouldNotHaveAField ( string $name ) : void
$name string
리턴 void

valueOfTheFieldEquals() 공개 메소드

public valueOfTheFieldEquals ( string $name, string $value ) : void
$name string
$value string
리턴 void