/** * @expectedException \Isdev\Assert\Exception\AssertionException */ public function testJsonStringMatchJsonStringFailIncorrectArrayLength() { Assertion::jsonStringMatchJsonString('[{"id":2}]', '[{"id":2}, {"id":3}]'); }
/** * @Then /^json response should be:$/ */ public function jsonResponseShouldBe(PyStringNode $string) { \Isdev\Assert\Assertion::jsonStringMatchJsonString($string->getRaw(), $this->getLastResponse()->getContent()); }