public function theResponseShouldContain($text)
    {
        $expectedRegexp = '/' . preg_quote($text) . '/i';
        $actual = (string) $this->response->getBody();
        Assertions::assertRegExp($expectedRegexp, $actual);
    }
public function theResponseShouldContain($text)
    {
        $expectedRegexp = '/' . preg_quote($text) . '/i';
        $actual = (string) $this->response->getBody();
        Assertions::assertRegExp($expectedRegexp, $actual);
    }
public function theResponseShouldContain ( $ text ) { $ expectedRegexp = '/' . preg_quote ( $ text ) . '/i' ; $ actual = ( string ) $ this -> response -> getBody ( ) ; Assertions :: assertRegExp ( $ expectedRegexp , $ actual ) ; }
Checks that response body contains specific text.

@param string $text

@Then /^(?:the )?response should contain "([^"]*)"$/
Checks that response body contains specific text .