Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b3b51cb

Browse files
committed
Add a test
Test correct handling of accept headers with trailing semicolon
1 parent 7f98632 commit b3b51cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Header/AcceptCharsetTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public function testAcceptCharsetGetFieldValueReturnsProperValue()
3232
$this->assertEquals('xxx', $acceptCharsetHeader->getFieldValue());
3333
}
3434

35+
public function testAcceptCharsetGetFieldValueReturnsProperValueWithTrailingSemicolon()
36+
{
37+
$acceptCharsetHeader = AcceptCharset::fromString('Accept-Charset: xxx;');
38+
$this->assertEquals('xxx', $acceptCharsetHeader->getFieldValue());
39+
}
40+
3541
public function testAcceptCharsetGetFieldValueReturnsProperValueWithSemicolonWithoutEqualSign()
3642
{
3743
$acceptCharsetHeader = AcceptCharset::fromString('Accept-Charset: xxx;yyy');

0 commit comments

Comments
 (0)