@@ 243-250 (lines=8) @@ | ||
240 | * |
|
241 | * @Then the JSON node :node should not contain :text |
|
242 | */ |
|
243 | public function theJsonNodeShouldNotContain($node, $text) |
|
244 | { |
|
245 | $json = $this->getJson(); |
|
246 | ||
247 | $actual = $this->inspector->evaluate($json, $node); |
|
248 | ||
249 | $this->assertNotContains($text, (string) $actual); |
|
250 | } |
|
251 | ||
252 | /** |
|
253 | * Checks, that given JSON nodes does not contain given value |
|
@@ 208-215 (lines=8) @@ | ||
205 | * |
|
206 | * @Then the JSON node :node should contain :text |
|
207 | */ |
|
208 | public function theJsonNodeShouldContain($node, $text) |
|
209 | { |
|
210 | $json = $this->getJson(); |
|
211 | ||
212 | $actual = $this->inspector->evaluate($json, $node); |
|
213 | ||
214 | $this->assertContains($text, (string) $actual); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * Checks, that given JSON nodes contains values |