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