Skip to content

Commit

Permalink
Reproduced bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mapogolions committed Aug 10, 2019
1 parent 4ddb1bf commit 2fbb459
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ResponseEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ public function testResponseDoesNotReplacePreviouslySetSetCookieHeaders()
{
$response = $this
->createResponse(200, 'OK')
->withHeader('Set-Cookie', 'foo=bar')
->withHeader('set-cOOkie', 'foo=bar')
->withAddedHeader('Set-Cookie', 'bar=baz');
$responseEmitter = new ResponseEmitter();
$responseEmitter->emit($response);

$expectedStack = [
['header' => 'Set-Cookie: foo=bar', 'replace' => false, 'status_code' => null],
['header' => 'Set-Cookie: bar=baz', 'replace' => false, 'status_code' => null],
['header' => 'set-cOOkie: foo=bar', 'replace' => false, 'status_code' => null],
['header' => 'set-cOOkie: bar=baz', 'replace' => false, 'status_code' => null],
['header' => 'HTTP/1.1 200 OK', 'replace' => true, 'status_code' => 200],
];

Expand All @@ -179,7 +179,7 @@ public function testAvoidReadFromSlowStreamAccordingStatus()
$response = $this
->createResponse(204, 'No content')
->withBody($body);

$responseEmitter = new ResponseEmitter();
$responseEmitter->emit($response);

Expand Down

0 comments on commit 2fbb459

Please sign in to comment.