You are here

public function WebAssert::statusCodeNotEquals in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ExpectationException

File

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

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

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);
}