PHP Class Behat\RestTestingContext\RestContext

Inheritance: extends BaseContext
Afficher le fichier Open project: deminy/behat-rest-testing

Méthodes publiques

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

Méthodes protégées

Méthode Description
decodeJson ( string $string ) : mixed Decode JSON string.

Method Details

decodeJson() protected méthode

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

fieldIsOfTypeWithValue() public méthode

public fieldIsOfTypeWithValue ( string $name, string $type, string $value ) : void
$name string
$type string
$value string
Résultat void

getResponseBody() public méthode

public getResponseBody ( ) : string
Résultat string

getResponseData() public méthode

public getResponseData ( ) : mixed
Résultat mixed

theResponseHasAField() public méthode

public theResponseHasAField ( string $name ) : void
$name string
Résultat void

theResponseShouldBe() public méthode

public theResponseShouldBe ( string $string ) : void
$string string
Résultat void

theResponseShouldNotHaveAField() public méthode

public theResponseShouldNotHaveAField ( string $name ) : void
$name string
Résultat void

valueOfTheFieldEquals() public méthode

public valueOfTheFieldEquals ( string $name, string $value ) : void
$name string
$value string
Résultat void