Skip to content

Commit 812f2f1

Browse files
authored
Added test for associative headers
1 parent d6bd86d commit 812f2f1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/unit/ResponseTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ public function testHeaders()
4141

4242
$this->assertEquals(['Content-Type: text/html'], $response->headers());
4343
}
44-
}
44+
45+
public function testAssociativeHeaders()
46+
{
47+
$response = new Response(null, null, ['Content-Type: text/html', 'HTTP/1.1 200 OK']);
48+
49+
$this->assertEquals(['Content-Type' => 'text/html', 'Status' => 'HTTP/1.1 200 OK'], $response->headers(true));
50+
}
51+
}

0 commit comments

Comments
 (0)