src/Concerns/InteractsWithPages.php
protected function assertInPage(PageConstraint $constraint, $reverse = false, $message = '')
    {
        if ($reverse) {
            $constraint = new ReversePageConstraint($constraint);
        }

        self::assertThat(
            $this->crawler() ?: $this->response->getContent(),
            $constraint, $message
        );

        return $this;
    }
protected function assertInPage(PageConstraint $constraint, $reverse = false, $message = '')
    {
        if ($reverse) {
            $constraint = new ReversePageConstraint($constraint);
        }

        self::assertThat(
            $this->crawler() ?: $this->response->getContent(),
            $constraint, $message
        );

        return $this;
    }
protected function assertInPage ( PageConstraint $ constraint , $ reverse = false , $ message = '' ) { if ( $ reverse ) { $ constraint = new ReversePageConstraint ( $ constraint ) ; } self :: assertThat ( $ this -> crawler ( ) ? : $ this -> response -> getContent ( ) , $ constraint , $ message ) ; return $ this ; }
Assert the given constraint.

@param  \Laravel\BrowserKitTesting\Constraints\PageConstraint  $constraint
@param  bool  $reverse
@param  string  $message
@return $this
Assert the given constraint .