Свойство | Type | Description | |
---|---|---|---|
$access_token | string | Client access_token | |
$associative | boolean | Specifies if the response data should be an associative array or a nested stdClass object hierarchy. | |
$client | Buzz\Browser | ||
$collectedData | string | Data collected from steps | |
$headers | array | Headers | |
$locations | array | Locations collected from steps | |
$requestMethod | string | ||
$requestUrl | string | Used for debugging purpose only. | |
$response | Buzz\Message\Response | ||
$responseData | mixed | Data decoded from HTTP response. | |
$responseDecodeException | Exception | ||
$responseIsJson | boolean |
Méthode | Description | |
---|---|---|
__construct ( array $parameters ) | Initializes context. | |
authenitcatedAsWithClient ( string $username, string $password, string $client, $secret ) : void | ||
authenitcatedWith ( $client, $secret ) : void | ||
checkItemsOrder ( string $order ) : void | ||
collectData ( $dataKey, Behat\Gherkin\Node\TableNode $data ) : void | ||
collectFakeData ( string $dataKey, Behat\Gherkin\Node\TableNode $data ) : boolean | ||
collectHeaders ( $key, $value ) : void | ||
collectLocations ( $locationIndex ) : boolean | ||
echoLastResponse ( ) : void | ||
fieldIsOfTypeWithValue ( string $fieldName, string $type, string $fieldValue ) : void | ||
getResponse ( ) : Guzzle\Http\Message\Response | Return the response object. | |
getResponseData ( ) : mixed | Return the response data. | |
iRequest ( string $pageUrl ) : void | ||
iSubmitDataTo ( $dataKey, string $pageUrl ) : void | ||
processPageUrl ( $pageUrl ) | ||
processResponse ( Buzz\Message\Response $response = null, boolean $asJson = true ) : void | This public method is also for other context(s) to process REST API call and inject response into this context. | |
saveFieldValueUnderLocation ( string $fieldName, string $locationIndex ) : Behat\Behat\Context\Step\Then | void | ||
thatIWantToDelete ( ) : void | ||
thatIWantToFind ( ) : void | ||
thatIWantToLink ( ) : void | ||
thatIWantToMakeANew ( ) : void | ||
thatIWantToUnlink ( ) : void | ||
thatIWantToUpdate ( ) : void | ||
theResponseHasAField ( string $name ) : void | ||
theResponseIsJson ( string $notJson = '' ) : void | ||
theResponseShouldBe ( string $string ) : void | ||
theResponseShouldContain ( string $str ) : void | ||
theResponseShouldNotHaveAField ( string $name ) : void | ||
theResponseStatusCodeShouldBe ( integer $httpStatus ) : void | ||
valueOfTheFieldEquals ( string $fieldName, string $fieldValue ) : void |
Méthode | Description | |
---|---|---|
decodeJson ( string $string ) : mixed | Decode JSON string. | |
processResponseBody ( string $jsonData, boolean $asJson = true ) : void | Process response body. This method may also be used by other context(s) to process REST API call and inject response body into this context by using 2nd parameter $asJson. |
Méthode | Description | |
---|---|---|
extractValueByGivenLocation ( $fieldValue ) |
public __construct ( array $parameters ) | ||
$parameters | array | Context parameters (set them up through behat.yml) |
public authenitcatedWith ( $client, $secret ) : void | ||
Résultat | void |
public checkItemsOrder ( string $order ) : void | ||
$order | string | |
Résultat | void |
public collectData ( $dataKey, Behat\Gherkin\Node\TableNode $data ) : void | ||
$data | Behat\Gherkin\Node\TableNode | |
Résultat | void |
public collectFakeData ( string $dataKey, Behat\Gherkin\Node\TableNode $data ) : boolean | ||
$dataKey | string | |
$data | Behat\Gherkin\Node\TableNode | |
Résultat | boolean |
public collectLocations ( $locationIndex ) : boolean | ||
Résultat | boolean |
protected decodeJson ( string $string ) : mixed | ||
$string | string | A JSON string. |
Résultat | mixed |
public getResponse ( ) : Guzzle\Http\Message\Response | ||
Résultat | Guzzle\Http\Message\Response |
public getResponseData ( ) : mixed | ||
Résultat | mixed |
public iSubmitDataTo ( $dataKey, string $pageUrl ) : void | ||
$pageUrl | string | |
Résultat | void |
public processResponse ( Buzz\Message\Response $response = null, boolean $asJson = true ) : void | ||
$response | Buzz\Message\Response | |
$asJson | boolean | Process the response as JSON or not. |
Résultat | void |
public theResponseHasAField ( string $name ) : void | ||
$name | string | |
Résultat | void |
public theResponseIsJson ( string $notJson = '' ) : void | ||
$notJson | string | |
Résultat | void |
public theResponseShouldBe ( string $string ) : void | ||
$string | string | |
Résultat | void |
public theResponseShouldContain ( string $str ) : void | ||
$str | string | |
Résultat | void |
public theResponseShouldNotHaveAField ( string $name ) : void | ||
$name | string | |
Résultat | void |
public theResponseStatusCodeShouldBe ( integer $httpStatus ) : void | ||
$httpStatus | integer | |
Résultat | void |
protected string $access_token | ||
Résultat | string |
protected bool $associative | ||
Résultat | boolean |
protected string $collectedData | ||
Résultat | string |
protected array $locations | ||
Résultat | array |
protected string $requestUrl | ||
Résultat | string |
protected Response,Buzz\Message $response | ||
Résultat | Buzz\Message\Response |
protected mixed $responseData | ||
Résultat | mixed |
protected Exception $responseDecodeException | ||
Résultat | Exception |