public function theResponseShouldNotHaveAField($name) { if (array_key_exists($name, $this->getResponseData())) { throw new Exception("Field '{$name}' should not have been found in response, but was."); } }