src/PageObject/Page.php
/**
     * Overload to verify if the current url matches the expected one. Throw an exception otherwise.
     *
     * @param array $urlParameters
     */
Overload to verify if the current url matches the expected one. Throw an exception otherwise.
@param array $urlParameters
Overload to verify if the current url matches the expected one . Throw an exception otherwise . @param array $urlParameters
protected function verifyUrl(array $urlParameters = array())
    {
        $expectedUrl = $this->getUrl($urlParameters);
        $currentUrl = $this->getDriver()->getCurrentUrl();
        if ($currentUrl !== $expectedUrl) {
            throw new UnexpectedPageException(sprintf('Expected to be on "%s" but found "%s" instead', $expectedUrl, $currentUrl));
        }
    }
protected function verifyUrl ( array $ urlParameters = array ( ) ) { $ expectedUrl = $ this -> getUrl ( $ urlParameters ) ; $ currentUrl = $ this -> getDriver ( ) -> getCurrentUrl ( ) ; if ( $ currentUrl !== $ expectedUrl ) { throw new UnexpectedPageException ( sprintf ( 'Expected to be on "%s" but found "%s" instead' , $ expectedUrl , $ currentUrl ) ) ; } }
Overload to verify if the current url matches the expected one.
Overload to verify if the current url matches the expected one .