Notice: Setters are for request and Getters for response since no assertion is done on requests, and no set is done onto responses
Exemplo n.º 1
0
 /**
  * @Then response body has :value (value)
  */
 public function responseBodyHasValue($value)
 {
     Assertion::assertEquals($value, $this->restDriver->getBody(), "Expected body isn't equal to the actual one." . "\nExpected: " . print_r($value, true) . "\nActual: " . print_r($this->restDriver->getBody(), true));
 }