public function theResponseContainsTheFollowingString(
        PyStringNode $string
    ) {
        $response = $this->getGuzzleResponse()->getBody(true);
        $formatted = $this->addStoredValues($string->getRaw());

        if (strpos($response, $formatted) === false) {
            throw new ClientErrorResponseException(
                'Actual response ' . $response . ' does not contain ' .
                'string ' . $formatted
            );
        }
    }
public function theResponseContainsTheFollowingString(
        PyStringNode $string
    ) {
        $response = $this->getGuzzleResponse()->getBody(true);
        $formatted = $this->addStoredValues($string->getRaw());

        if (strpos($response, $formatted) === false) {
            throw new ClientErrorResponseException(
                'Actual response ' . $response . ' does not contain ' .
                'string ' . $formatted
            );
        }
    }
public function theResponseContainsTheFollowingString ( PyStringNode $ string ) { $ response = $ this -> getGuzzleResponse ( ) -> getBody ( true ) ; $ formatted = $ this -> addStoredValues ( $ string -> getRaw ( ) ) ; if ( strpos ( $ response , $ formatted ) === false ) { throw new ClientErrorResponseException ( 'Actual response ' . $ response . ' does not contain ' . 'string ' . $ formatted ) ; } }
Check response contains a specified string

Example: And the response contains the following string:
"""
{stored[someArray][email][invalid]} is invalid
"""

@param PyStringNode $string String specified in feature

@Then the response contains the following string:
Check response contains a specified string