private function WebAssert::assert in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::assert()
Asserts a condition.
Parameters
bool $condition:
string $message Failure message:
Throws
ExpectationException when the condition is not fulfilled
24 calls to WebAssert::assert()
- WebAssert::addressEquals in vendor/
behat/ mink/ src/ WebAssert.php - Checks that current session address is equals to provided one.
- WebAssert::addressMatches in vendor/
behat/ mink/ src/ WebAssert.php - Checks that current session address matches regex.
- WebAssert::addressNotEquals in vendor/
behat/ mink/ src/ WebAssert.php - Checks that current session address is not equals to provided one.
- WebAssert::checkboxChecked in vendor/
behat/ mink/ src/ WebAssert.php - Checks that specific checkbox is checked.
- WebAssert::checkboxNotChecked in vendor/
behat/ mink/ src/ WebAssert.php - Checks that specific checkbox is unchecked.
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 764
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
private function assert($condition, $message) {
if ($condition) {
return;
}
throw new ExpectationException($message, $this->session
->getDriver());
}