Behat\RestTestingContext\RestContext::theResponseShouldBe PHP Method

theResponseShouldBe() public method

public theResponseShouldBe ( string $string ) : void
$string string
return void
    public function theResponseShouldBe($string)
    {
        $body = $this->getResponseBody();
        if ($body !== $string) {
            throw new Exception("'{$string}' was expected for response body, but '{$body}' found instead.");
        }
    }