public function statusCodeEquals($code)
    {
        $actual = $this->session->getStatusCode();
        $message = sprintf('Current response status code is %d, but %d expected.', $actual, $code);

        $this->assert(intval($code) === intval($actual), $message);
    }
public function statusCodeEquals($code)
    {
        $actual = $this->session->getStatusCode();
        $message = sprintf('Current response status code is %d, but %d expected.', $actual, $code);

        $this->assert(intval($code) === intval($actual), $message);
    }
public function statusCodeEquals ( $ code ) { $ actual = $ this -> session -> getStatusCode ( ) ; $ message = sprintf ( 'Current response status code is %d, but %d expected.' , $ actual , $ code ) ; $ this -> assert ( intval ( $ code ) === intval ( $ actual ) , $ message ) ; }
Checks that current response code equals to provided one.

@param int $code

@throws ExpectationException
Checks that current response code equals to provided one .