public function assertStatusCode($path, $code)
    {
        // The "Goutte" session should be used because it provide the request status codes.
        $this->visitPath($path, 'goutte');
        $responseCode = $this->getSession('goutte')->getStatusCode();

        self::debug(['HTTP code is: %s'], [$responseCode]);

        return $responseCode == $code;
    }
public function assertStatusCode($path, $code)
    {
        // The "Goutte" session should be used because it provide the request status codes.
        $this->visitPath($path, 'goutte');
        $responseCode = $this->getSession('goutte')->getStatusCode();

        self::debug(['HTTP code is: %s'], [$responseCode]);

        return $responseCode == $code;
    }
@param string $path
Relative URL.
@param string|int $code
HTTP response code.

@return bool