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

Commit 8cd4838

Browse files
committed
Adding test case for issue fix #100
1 parent b459be7 commit 8cd4838

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/MessageTraitTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ public function testWithHeaderRaisesExceptionForInvalidValueType($value)
175175
$message = $this->message->withHeader('X-Foo', $value);
176176
}
177177

178+
public function testWithHeaderReplacesDifferentCapitalization()
179+
{
180+
$this->message = $this->message->withHeader('X-Foo', ['foo']);
181+
$new = $this->message->withHeader('X-foo', ['bar']);
182+
$this->assertEquals(['bar'], $new->getHeader('x-foo'));
183+
$this->assertEquals(['X-foo' => ['bar']], $new->getHeaders());
184+
}
185+
178186
/**
179187
* @dataProvider invalidGeneralHeaderValues
180188
*/

0 commit comments

Comments
 (0)