protected function verifyPage()
    {
        $url = $this->getSession()->getCurrentUrl();

        if (strrpos($url, $this->path) !== false) {
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W401] Expected screen is the wp-admin dashboard, instead on "%1$s".',
                $url
            ),
            $this->getDriver()
        );
    }
protected function verifyPage()
    {
        $url = $this->getSession()->getCurrentUrl();

        if (strrpos($url, $this->path) !== false) {
            return;
        }

        throw new ExpectationException(
            sprintf(
                '[W401] Expected screen is the wp-admin dashboard, instead on "%1$s".',
                $url
            ),
            $this->getDriver()
        );
    }
protected function verifyPage ( ) { $ url = $ this -> getSession ( ) -> getCurrentUrl ( ) ; if ( strrpos ( $ url , $ this -> path ) !== false ) { return ; } throw new ExpectationException ( sprintf ( '[W401] Expected screen is the wp-admin dashboard, instead on "%1$s".' , $ url ) , $ this -> getDriver ( ) ) ; }
Asserts the current screen is the Dashboard.

@throws ExpectationException
Asserts the current screen is the Dashboard .