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

        try {
            Assertion::same(
                $actual = $this->response->getHeaderLine($header),
                $value,
                sprintf(
                    'Expected the "%s" response header to be "%s", got "%s".',
                    $header,
                    $value,
                    $actual
                )
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderIs($header, $value) {
        $this->requireResponse();

        try {
            Assertion::same(
                $actual = $this->response->getHeaderLine($header),
                $value,
                sprintf(
                    'Expected the "%s" response header to be "%s", got "%s".',
                    $header,
                    $value,
                    $actual
                )
            );
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseHeaderIs ( $ header , $ value ) { $ this -> requireResponse ( ) ; try { Assertion :: same ( $ actual = $ this -> response -> getHeaderLine ( $ header ) , $ value , sprintf ( 'Expected the "%s" response header to be "%s", got "%s".' , $ header , $ value , $ actual ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Compare a response header value against a string

@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 :value
Compare a response header value against a string