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

        try {
            $actualStatusLine = sprintf(
                '%d %s',
                $this->response->getStatusCode(),
                $this->response->getReasonPhrase()
            );

            Assertion::same($line, $actualStatusLine, sprintf(
                'Expected response status line "%s", got "%s".',
                $line,
                $actualStatusLine
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseStatusLineIs($line) {
        $this->requireResponse();

        try {
            $actualStatusLine = sprintf(
                '%d %s',
                $this->response->getStatusCode(),
                $this->response->getReasonPhrase()
            );

            Assertion::same($line, $actualStatusLine, sprintf(
                'Expected response status line "%s", got "%s".',
                $line,
                $actualStatusLine
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseStatusLineIs ( $ line ) { $ this -> requireResponse ( ) ; try { $ actualStatusLine = sprintf ( '%d %s' , $ this -> response -> getStatusCode ( ) , $ this -> response -> getReasonPhrase ( ) ) ; Assertion :: same ( $ line , $ actualStatusLine , sprintf ( 'Expected response status line "%s", got "%s".' , $ line , $ actualStatusLine ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that the HTTP response status line equals a given value

@param string $line Expected HTTP response status line
@throws AssertionFailedException
@return void

@Then the response status line is :line
Assert that the HTTP response status line equals a given value