@@ 324-330 (lines=7) @@ | ||
321 | $this->assertEquals($code, $this->response->getErrorCode()); |
|
322 | } |
|
323 | ||
324 | private function getMethodSetErrorCode() |
|
325 | { |
|
326 | $responseReflect = new ReflectionClass(Response::class); |
|
327 | $method = $responseReflect->getMethod('setErrorCode'); |
|
328 | $method->setAccessible(true); |
|
329 | return $method; |
|
330 | } |
|
331 | ||
332 | private function getMethodSetStatusCode() |
|
333 | { |
|
@@ 332-338 (lines=7) @@ | ||
329 | return $method; |
|
330 | } |
|
331 | ||
332 | private function getMethodSetStatusCode() |
|
333 | { |
|
334 | $responseReflect = new ReflectionClass(Response::class); |
|
335 | $method = $responseReflect->getMethod('setStatusCode'); |
|
336 | $method->setAccessible(true); |
|
337 | return $method; |
|
338 | } |
|
339 | ||
340 | ||
341 | private function withError(Response $response, $code, $message = null, $errorCode = null) |