@@ 244-251 (lines=8) @@ | ||
241 | * |
|
242 | * @Then the JSON node :node should not contain :text |
|
243 | */ |
|
244 | public function theJsonNodeShouldNotContain($node, $text) |
|
245 | { |
|
246 | $json = $this->getJson(); |
|
247 | ||
248 | $actual = $this->inspector->evaluate($json, $node); |
|
249 | ||
250 | $this->assertNotContains($text, (string) $actual); |
|
251 | } |
|
252 | ||
253 | /** |
|
254 | * Checks, that given JSON nodes does not contain given value |
|
@@ 218-225 (lines=8) @@ | ||
215 | * |
|
216 | * @Then the JSON node :node should contain :text |
|
217 | */ |
|
218 | public function theJsonNodeShouldContain($node, $text) |
|
219 | { |
|
220 | $json = $this->getJson(); |
|
221 | ||
222 | $actual = $this->inspector->evaluate($json, $node); |
|
223 | ||
224 | $this->assertContains($text, (string) $actual); |
|
225 | } |
|
226 | ||
227 | /** |
|
228 | * Checks, that given JSON nodes contains values |