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

        try {
            Assertion::notSame(
                $this->response->getHeaderLine($header),
                $value,
                sprintf(
                    'Did not expect the "%s" response header to be "%s".',
                    $header,
                    $value
                )
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderIsNot($header, $value) {
        $this->requireResponse();

        try {
            Assertion::notSame(
                $this->response->getHeaderLine($header),
                $value,
                sprintf(
                    'Did not expect the "%s" response header to be "%s".',
                    $header,
                    $value
                )
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderIsNot ( $ header , $ value ) { $ this -> requireResponse ( ) ; try { Assertion :: notSame ( $ this -> response -> getHeaderLine ( $ header ) , $ value , sprintf ( 'Did not expect the "%s" response header to be "%s".' , $ header , $ value ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that a response header is not a value

@param string $header The name of the header
@param string $value The value to compare with
@throws AssertionFailedException
@return void

@Then the :header response header is not :value
Assert that a response header is not a value