Skip to content

Commit 69b781c

Browse files
committed
Add tests for PSR--7 meta headers
1 parent 8c3e91e commit 69b781c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/MessageTest.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,17 @@ public function testWithHeaderThrowExceptionForInvalidHeader($name): void
222222
*/
223223
public function invalidHeaderValueProvider(): array
224224
{
225-
return $this->getInvalidValues([[null], ["Va\nlue"], [["Va\r\nlue"]], ["Va\r)\nlue"]]);
225+
return $this->getInvalidValues([
226+
[null],
227+
["Va\nlue"],
228+
[["Va\r\nlue"]],
229+
["Va\r)\nlue"],
230+
["\r"],
231+
["\r\n"],
232+
["\0x00"],
233+
["\0x0A"],
234+
["\0x0D"],
235+
]);
226236
}
227237

228238
/**

0 commit comments

Comments
 (0)