public function addressMatches($regex)
    {
        $actual = $this->getCurrentUrlPath();
        $message = sprintf('Current page "%s" does not match the regex "%s".', $actual, $regex);

        $this->assert((bool) preg_match($regex, $actual), $message);
    }
public function addressMatches($regex)
    {
        $actual = $this->getCurrentUrlPath();
        $message = sprintf('Current page "%s" does not match the regex "%s".', $actual, $regex);

        $this->assert((bool) preg_match($regex, $actual), $message);
    }
public function addressMatches ( $ regex ) { $ actual = $ this -> getCurrentUrlPath ( ) ; $ message = sprintf ( 'Current page "%s" does not match the regex "%s".' , $ actual , $ regex ) ; $ this -> assert ( ( bool ) preg_match ( $ regex , $ actual ) , $ message ) ; }
Checks that current session address matches regex.

@param string $regex

@throws ExpectationException
Checks that current session address matches regex .