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