This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ public function testAcceptEncodingGetFieldValueReturnsProperValue()
32
32
$ this ->assertEquals ('xxx ' , $ acceptEncodingHeader ->getFieldValue ());
33
33
}
34
34
35
+ public function testAcceptEncodingGetFieldValueReturnsProperValueWithTrailingSemicolon ()
36
+ {
37
+ $ acceptEncodingHeader = AcceptEncoding::fromString ('Accept-Encoding: xxx; ' );
38
+ $ this ->assertEquals ('xxx ' , $ acceptEncodingHeader ->getFieldValue ());
39
+ }
40
+
41
+ public function testAcceptEncodingGetFieldValueReturnsProperValueWithSemicolonWithoutEqualSign ()
42
+ {
43
+ $ acceptEncodingHeader = AcceptEncoding::fromString ('Accept-Encoding: xxx;yyy ' );
44
+ $ this ->assertEquals ('xxx;yyy ' , $ acceptEncodingHeader ->getFieldValue ());
45
+ }
46
+
35
47
public function testAcceptEncodingToStringReturnsHeaderFormattedString ()
36
48
{
37
49
$ acceptEncodingHeader = new AcceptEncoding ();
Original file line number Diff line number Diff line change @@ -32,6 +32,18 @@ public function testAcceptLanguageGetFieldValueReturnsProperValue()
32
32
$ this ->assertEquals ('xxx ' , $ acceptLanguageHeader ->getFieldValue ());
33
33
}
34
34
35
+ public function testAcceptLanguageGetFieldValueReturnsProperValueWithTrailingSemicolon ()
36
+ {
37
+ $ acceptLanguageHeader = AcceptLanguage::fromString ('Accept-Language: xxx; ' );
38
+ $ this ->assertEquals ('xxx ' , $ acceptLanguageHeader ->getFieldValue ());
39
+ }
40
+
41
+ public function testAcceptLanguageGetFieldValueReturnsProperValueWithSemicolonWithoutEqualSign ()
42
+ {
43
+ $ acceptLanguageHeader = AcceptLanguage::fromString ('Accept-Language: xxx;yyy ' );
44
+ $ this ->assertEquals ('xxx;yyy ' , $ acceptLanguageHeader ->getFieldValue ());
45
+ }
46
+
35
47
public function testAcceptLanguageToStringReturnsHeaderFormattedString ()
36
48
{
37
49
$ acceptLanguageHeader = new AcceptLanguage ();
You can’t perform that action at this time.
0 commit comments