You are here

public function WebAssert::addressEquals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::addressEquals()

Checks that current session address is equals to provided one.

Parameters

string $page:

Throws

ExpectationException

File

vendor/behat/mink/src/WebAssert.php, line 49

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

public function addressEquals($page) {
  $expected = $this
    ->cleanUrl($page);
  $actual = $this
    ->getCurrentUrlPath();
  $this
    ->assert($actual === $expected, sprintf('Current page is "%s", but "%s" expected.', $actual, $expected));
}