public function WebAssert::statusCodeNotEquals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::statusCodeNotEquals()
Checks that current response code not equals to provided one.
Parameters
int $code:
Throws
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 140
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function statusCodeNotEquals($code) {
$actual = $this->session
->getStatusCode();
$message = sprintf('Current response status code is %d, but should not be.', $actual);
$this
->assert(intval($code) !== intval($actual), $message);
}