Checks whether the last JSON response contains provided array.
The response is converted to array with json_decode($response, true)
Thus, JSON is represented by associative array.
This method matches that response array contains provided array.
Examples:
php
seeResponseContainsJson(array('name' => 'john'));
response {user: john, profile: { email: john@gmail.com }}
$I->seeResponseContainsJson(array('email' => 'john@gmail.com'));
?>
This method recursively checks if one array can be found inside of another.
public seeResponseContainsJson ( array $json = null ) | ||
$json | array |