public function pageTextMatches($regex)
    {
        $actual = $this->session->getPage()->getText();
        $message = sprintf('The pattern %s was not found anywhere in the text of the current page.', $regex);

        $this->assertResponseText((bool) preg_match($regex, $actual), $message);
    }
public function pageTextMatches($regex)
    {
        $actual = $this->session->getPage()->getText();
        $message = sprintf('The pattern %s was not found anywhere in the text of the current page.', $regex);

        $this->assertResponseText((bool) preg_match($regex, $actual), $message);
    }
public function pageTextMatches ( $ regex ) { $ actual = $ this -> session -> getPage ( ) -> getText ( ) ; $ message = sprintf ( 'The pattern %s was not found anywhere in the text of the current page.' , $ regex ) ; $ this -> assertResponseText ( ( bool ) preg_match ( $ regex , $ actual ) , $ message ) ; }
Checks that current page text matches regex.

@param string $regex

@throws ResponseTextException
Checks that current page text matches regex .