Skip to content

intellectsoft-uk/assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assert

Assertions:

* Assertion::jsonStringMatchJsonString($expected, $actual)

Example usages

<?php
Assertion::jsonStringMatchJsonString('{"id":*, "user": {"name": "Bob"}}', '{"id":2, "user": {"name": "Bob"}}'); //success
Assertion::jsonStringMatchJsonString('{"user": {"name": "Bob"}}', '{"id":2, "user": {"name": "Bob"}}'); //fail
Assertion::jsonStringMatchJsonString('{"id":*, "user": {"name": "Bob"}}', '{"id":2, "user": {"name": "Tom"}}'); //fail

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published