protected function assertSee($text, $message, $negate = false)
    {
        try {
            $text = preg_quote($text, '/');
            $method = $negate ? 'assertNotRegExp' : 'assertRegExp';

            $this->$method("/{$text}/i", $this->response(), $message);
        } catch (PHPUnitException $e) {
            $this->logLatestContent();

            throw $e;
        }

        return $this;
    }
protected function assertSee($text, $message, $negate = false)
    {
        try {
            $text = preg_quote($text, '/');
            $method = $negate ? 'assertNotRegExp' : 'assertRegExp';

            $this->$method("/{$text}/i", $this->response(), $message);
        } catch (PHPUnitException $e) {
            $this->logLatestContent();

            throw $e;
        }

        return $this;
    }
protected function assertSee ( $ text , $ message , $ negate = false ) { try { $ text = preg_quote ( $ text , '/' ) ; $ method = $ negate ? 'assertNotRegExp' : 'assertRegExp' ; $ this -> $ method ( "/{$text}/i" , $ this -> response ( ) , $ message ) ; } catch ( PHPUnitException $ e ) { $ this -> logLatestContent ( ) ; throw $ e ; } return $ this ; }
Assert that the page contains the given text.

@param  string  $text
@param  string  $message
@param  boolean $negate
@return static
@throws PHPUnitException
Assert that the page contains the given text .