Checks that current session address matches regex.
string $regex:
void
ExpectationException
public function addressMatches(string $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); }