PHP Class Behat\RestTestingContext\RestContext

Inheritance: extends BaseContext
Datei anzeigen Open project: deminy/behat-rest-testing

Public Methods

Method Description
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

Protected Methods

Method Description
decodeJson ( string $string ) : mixed Decode JSON string.

Method Details

decodeJson() protected method

Decode JSON string.
See also: http://www.php.net/json_last_error
protected decodeJson ( string $string ) : mixed
$string string A JSON string.
return mixed

fieldIsOfTypeWithValue() public method

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

getResponseBody() public method

public getResponseBody ( ) : string
return string

getResponseData() public method

public getResponseData ( ) : mixed
return mixed

theResponseHasAField() public method

public theResponseHasAField ( string $name ) : void
$name string
return void

theResponseShouldBe() public method

public theResponseShouldBe ( string $string ) : void
$string string
return void

theResponseShouldNotHaveAField() public method

public theResponseShouldNotHaveAField ( string $name ) : void
$name string
return void

valueOfTheFieldEquals() public method

public valueOfTheFieldEquals ( string $name, string $value ) : void
$name string
$value string
return void