eZ\Bundle\EzPublishRestBundle\Features\Context\RestClient\DriverInterface::getBody PHP Method

getBody() public method

Get response body.
public getBody ( ) : string
return string
    public function getBody();

Usage Example

 /**
  * @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));
 }