src/Concerns/MakesHttpRequests.php
public function assertResponseStatus($code)
    {
        $actual = $this->response->getStatusCode();

        PHPUnit::assertEquals($code, $this->response->getStatusCode(), "Expected status code {$code}, got {$actual}.");

        return $this;
    }
public function assertResponseStatus($code)
    {
        $actual = $this->response->getStatusCode();

        PHPUnit::assertEquals($code, $this->response->getStatusCode(), "Expected status code {$code}, got {$actual}.");

        return $this;
    }
public function assertResponseStatus ( $ code ) { $ actual = $ this -> response -> getStatusCode ( ) ; PHPUnit :: assertEquals ( $ code , $ this -> response -> getStatusCode ( ) , "Expected status code {$code}, got {$actual}." ) ; return $ this ; }
Assert that the client response has a given code.

@param  int  $code
@return $this
Assert that the client response has a given code .