assert
assert copied to clipboard
Standalone, lightweight, framework agnostic, test assertion library.
I've created a new [zenstruck/assert-html](https://github.com/zenstruck/assert-html) package which is like a plugin for this library to make html assertions. ~I've extracted this code from zenstruck/browser and will create a followup PR...
Per a slack discussion with @nikophil. ```php Assert::that('[4, 5, 6]') ->isJson() // json_decode's the current value and starts a new expectation with this ->contains(5) ; Assert::that('5') ->isJson() ->is(5) ->isGreaterThan(4) ;...