Behat\RestTestingContext\RestContext::theResponseShouldNotHaveAField PHP Method

theResponseShouldNotHaveAField() public method

public theResponseShouldNotHaveAField ( string $name ) : void
$name string
return void
    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.");
        }
    }