martin-helmich/phpunit-json-assert

assert doesn't match

ymadh opened this issue · 1 comments

ymadh commented

Is it possible to check for false tests? something along the lines of assertNotEquals or assertNotContains?

Sure! Simply use logicalNot(...) as wrapper:

assertThat($jsonDocument, logicalNot(containsJsonValue('$.foo', 'bar')));