1 | <?php |
||
19 | class FeatureContext implements Context, SnippetAcceptingContext |
||
20 | { |
||
21 | /** @var HttpClient */ |
||
22 | private $httpClient; |
||
23 | |||
24 | /** @var Client */ |
||
25 | private $client; |
||
26 | |||
27 | /** @var Response */ |
||
28 | private $response; |
||
29 | |||
30 | /** @var HalClientException */ |
||
31 | private $error; |
||
32 | |||
33 | /** @var Node */ |
||
34 | private $result; |
||
35 | |||
36 | /** @var string */ |
||
37 | private $urlPrefix = ''; |
||
38 | |||
39 | /** |
||
40 | * Initializes context. |
||
41 | * |
||
42 | * Every scenario gets its own context instance. |
||
43 | * You can also pass arbitrary arguments to the |
||
44 | * context constructor through behat.yml. |
||
45 | */ |
||
46 | public function __construct($client) |
||
59 | |||
60 | /** |
||
61 | * @Given a :method endpoint :url which returns content type :contentType and body: |
||
62 | */ |
||
63 | public function aEndpointWhichReturnsContentTypeAndBody($method, $url, $contentType, PyStringNode $body) |
||
67 | |||
68 | /** |
||
69 | * @When I make a GET request to :url |
||
70 | */ |
||
71 | public function iMakeAGetRequestTo($url) |
||
79 | |||
80 | /** |
||
81 | * @When I make a GET request to link :linkName from the response |
||
82 | */ |
||
83 | public function iMakeAGetRequestToLinkFromTheResponse($linkName) |
||
87 | |||
88 | /** |
||
89 | * @Then I should get a bad content type error |
||
90 | */ |
||
91 | public function iShouldGetABadContentTypeError() |
||
95 | |||
96 | /** |
||
97 | * @Then the response field :field should contain :value |
||
98 | */ |
||
99 | public function theResponseFieldShouldContain($field, $value) |
||
103 | |||
104 | /** |
||
105 | * @Then the response field :fieldName in embedded resource :resourceName should contain :value |
||
106 | */ |
||
107 | public function theResponseFieldInEmbeddedResourceShouldContain($resourceName, $fieldName, $value) |
||
111 | |||
112 | /** |
||
113 | * @Then the field :level2 in response field :level1 should contain :value |
||
114 | */ |
||
115 | public function theResponseFieldInResponseFieldShouldContain($level1, $level2, $value) |
||
119 | |||
120 | /** |
||
121 | * @Then the field :fieldName at index :index in response field :resourceName should contain :value |
||
122 | */ |
||
123 | public function theFieldAtIndexInResponseFieldShouldContain($fieldName, $resourceName, $value, $index) |
||
127 | |||
128 | /** |
||
129 | * @Then the field :fieldName at index :index in resource field :resourceName should contain :value |
||
130 | */ |
||
131 | public function theFieldAtIndexInResourceFieldShouldContain($fieldName, $resourceName, $value, $index) |
||
135 | |||
136 | /** |
||
137 | * @Then I should find :count field with :fieldName matching :fieldValue in the :collection collection |
||
138 | */ |
||
139 | public function iShouldFindFieldWithMatchingInTheCollection($fieldName, $fieldValue, $collection, $count) |
||
147 | |||
148 | /** |
||
149 | * @Then the field should have :name :value |
||
150 | */ |
||
151 | public function theFieldShouldHave($name, $value) |
||
155 | } |
||
156 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.