public function theResponseCodeShouldBe($code)
    {
        $expected = intval($code);
        $actual = intval($this->response->getStatusCode());
        Assertions::assertSame($expected, $actual);
    }
public function theResponseCodeShouldBe($code)
    {
        $expected = intval($code);
        $actual = intval($this->response->getStatusCode());
        Assertions::assertSame($expected, $actual);
    }
public function theResponseCodeShouldBe ( $ code ) { $ expected = intval ( $ code ) ; $ actual = intval ( $ this -> response -> getStatusCode ( ) ) ; Assertions :: assertSame ( $ expected , $ actual ) ; }
Checks that response has specific status code.

@param string $code status code

@Then /^(?:the )?response code should be (\d+)$/
Checks that response has specific status code .