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