You've already forked Traefik-Redis-Api
Nothing to see here, move along
This commit is contained in:
@@ -40,4 +40,16 @@ class JsonResponseFactoryTest extends TestCase
|
||||
$data = ["invalid" => "\xB1\x31"];
|
||||
JsonResponseFactory::createJsonResponse($data);
|
||||
}
|
||||
|
||||
public function testCreateResponseReturnsValidResponse(): void
|
||||
{
|
||||
$code = 200;
|
||||
$reasonPhrase = 'OK';
|
||||
|
||||
$factory = new JsonResponseFactory();
|
||||
$response = $factory->createResponse($code, $reasonPhrase);
|
||||
|
||||
$this->assertSame($code, $response->getStatusCode());
|
||||
$this->assertSame('application/json', $response->getHeaderLine('Content-Type'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user