src/Context/ApiContext.php
public function assertResponseHeaderDoesNotExist($header) {
        $this->requireResponse();

        try {
            Assertion::false(
                $this->response->hasHeader($header),
                sprintf('The "%s" response header should not exist.', $header)
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderDoesNotExist($header) {
        $this->requireResponse();

        try {
            Assertion::false(
                $this->response->hasHeader($header),
                sprintf('The "%s" response header should not exist.', $header)
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderDoesNotExist ( $ header ) { $ this -> requireResponse ( ) ; try { Assertion :: false ( $ this -> response -> hasHeader ( $ header ) , sprintf ( 'The "%s" response header should not exist.' , $ header ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that a response header does not exist

@param string $header Then name of the header
@throws AssertionFailedException
@return void

@Then the :header response header does not exist
Assert that a response header does not exist