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

        try {
            Assertion::same($phrase, $actual = $this->response->getReasonPhrase(), sprintf(
                'Expected response reason phrase "%s", got "%s".',
                $phrase,
                $actual
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseReasonPhraseIs($phrase) {
        $this->requireResponse();

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

@param string $phrase Expected HTTP response reason phrase
@throws AssertionFailedException
@return void

@Then the response reason phrase is :phrase
Assert that the HTTP response reason phrase equals a given value