src/Context/ApiContext.php
public function assertResponseBodyIsNot(PyStringNode $content) {
        $this->requireResponse();
        $content = (string) $content;

        try {
            Assertion::notSame((string) $this->response->getBody(), $content, sprintf(
                'Did not expect response body to be "%s".',
                $content
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseBodyIsNot(PyStringNode $content) {
        $this->requireResponse();
        $content = (string) $content;

        try {
            Assertion::notSame((string) $this->response->getBody(), $content, sprintf(
                'Did not expect response body to be "%s".',
                $content
            ));
        } catch (AssertionFailure $e) {
            throw new AssertionFailedException($e->getMessage());
        }
    }
public function assertResponseBodyIsNot ( PyStringNode $ content ) { $ this -> requireResponse ( ) ; $ content = ( string ) $ content ; try { Assertion :: notSame ( ( string ) $ this -> response -> getBody ( ) , $ content , sprintf ( 'Did not expect response body to be "%s".' , $ content ) ) ; } catch ( AssertionFailure $ e ) { throw new AssertionFailedException ( $ e -> getMessage ( ) ) ; } }
Assert that the response body does not match some content

@param PyStringNode $content The content that the response body should not match
@throws AssertionFailedException
@return void

@Then the response body is not:
Assert that the response body does not match some content