protected function ensureResponseHasView()
    {
        if (! isset($this->view) || ! $this->view instanceof View) {
            return PHPUnit::fail('The response is not a view.');
        }

        return $this;
    }
protected function ensureResponseHasView()
    {
        if (! isset($this->view) || ! $this->view instanceof View) {
            return PHPUnit::fail('The response is not a view.');
        }

        return $this;
    }
protected function ensureResponseHasView ( ) { if ( ! isset ( $ this -> view ) || ! $ this -> view instanceof View ) { return PHPUnit :: fail ( 'The response is not a view.' ) ; } return $ this ; }
Ensure that the response has a view as its original content.

@return $this
Ensure that the response has a view as its original content .