You are here

public function WebAssert::addressNotEquals in Zircon Profile 8

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

Checks that current session address is not equals to provided one.

Parameters

string $page:

Throws

ExpectationException

File

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

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

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