File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2727 */
2828#[CoversClass(HtmlResponse::class)]
2929#[UsesClass(StatusCode::class)]
30+ #[UsesClass(ContentType::class)]
3031final class HtmlResponseTest extends TestCase
3132{
3233 public function testConstructorWillSetHtmlBodyAndContentType (): void
Original file line number Diff line number Diff line change 3030 */
3131#[CoversClass(JsonResponse::class)]
3232#[UsesClass(JsonStream::class)]
33+ #[UsesClass(ContentType::class)]
3334final class JsonResponseTest extends TestCase
3435{
3536 public function testClassImplementsJsonResponseInterface (): void
@@ -44,7 +45,7 @@ public function testConstructorWillInitializeWithCharset(string $charset): void
4445
4546 $ response = new JsonResponse ($ payload , $ charset );
4647
47- self ::assertSame ([ ' success ' => true ] , $ response ->getPayload ());
48+ self ::assertSame ($ payload , $ response ->getPayload ());
4849 self ::assertInstanceOf (PayloadStreamInterface::class, $ response ->getBody ());
4950 self ::assertSame (ContentType::ApplicationJson, ContentType::fromHeaderString ($ response ->getHeaderLine ('Content-Type ' )));
5051 self ::assertSame ($ charset , ContentType::getCharset ($ response ->getHeaderLine ('Content-Type ' )));
You can’t perform that action at this time.
0 commit comments