-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subject Inspectors #87
Comments
Use |
Also add |
Saving this off for |
Challenge:With SolutionJSON & Array content inspectors accept an optional callback that allows multiple assertions on content. Something like: verify($subject)->user->toJson()
->jsonContent(static function (Verifier $jsonConent): void {
$jsonContent->first_name->is()->identicalTo('John')
->and()->last_name->is()->identicalTo('Smith');
}); |
Verifier to add assertions about the contents of an array or JSON string. Something like:
The text was updated successfully, but these errors were encountered: