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