From dbccd5c38cfa66d8b678d6fcb3a3a1a6aef86400 Mon Sep 17 00:00:00 2001 From: Angger Pradana Date: Wed, 25 Oct 2023 07:21:22 +0000 Subject: [PATCH] add test --- tests/Http/HeaderCollectionTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Http/HeaderCollectionTest.php b/tests/Http/HeaderCollectionTest.php index 32854b6a..c270fb7b 100644 --- a/tests/Http/HeaderCollectionTest.php +++ b/tests/Http/HeaderCollectionTest.php @@ -26,6 +26,16 @@ public function itCanGetStringOfHeader() $this->assertEquals('Cache-Control: no-cache="http://example.com, http://example2.com"', (string) $header, 'with multy value'); } + /** + * @test + */ + public function itCanAddRawHeader() + { + $header = new HeaderCollection([]); + $header->setRaw('Cache-Control: max-age=31536000, public, no-transform, proxy-revalidate, s-maxage=2592000'); + $this->assertEquals('Cache-Control: max-age=31536000, public, no-transform, proxy-revalidate, s-maxage=2592000', (string) $header); + } + /** * @test */