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

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

            Assertion::notSame($line, $actualStatusLine, sprintf(
                'Did not expect response status line "%s".',
                $line
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseStatusLineIsNot($line) {
        $this->requireResponse();

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

            Assertion::notSame($line, $actualStatusLine, sprintf(
                'Did not expect response status line "%s".',
                $line
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseStatusLineIsNot ( $ line ) { $ this -> requireResponse ( ) ; try { $ actualStatusLine = sprintf ( '%d %s' , $ this -> response -> getStatusCode ( ) , $ this -> response -> getReasonPhrase ( ) ) ; Assertion :: notSame ( $ line , $ actualStatusLine , sprintf ( 'Did not expect response status line "%s".' , $ line ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that the HTTP response status line does not equal a given value

@param string $line Value that the HTTP response status line must not equal
@throws AssertionFailedException
@return void

@Then the response status line is not :line
Assert that the HTTP response status line does not equal a given value