|
@@ 217-224 (lines=8) @@
|
| 214 |
|
* |
| 215 |
|
* @Then the JSON node :node should contain :text |
| 216 |
|
*/ |
| 217 |
|
public function theJsonNodeShouldContain($node, $text) |
| 218 |
|
{ |
| 219 |
|
$json = $this->getJson(); |
| 220 |
|
|
| 221 |
|
$actual = $this->inspector->evaluate($json, $node); |
| 222 |
|
|
| 223 |
|
$this->assertContains($text, (string) $actual); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
/** |
| 227 |
|
* Checks, that given JSON nodes contains values |
|
@@ 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 |