Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
SonyPradana committed Oct 25, 2023
1 parent 29cc310 commit dbccd5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Http/HeaderCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit dbccd5c

Please sign in to comment.