public function WebAssert::addressNotEquals in Zircon Profile 8
Same name and namespace in other branches
- 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
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 64
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
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));
}