Extends
lithium\test\UnitSource
public function testHeaderKey() {
$expected = array(
'Host: localhost:80'
);
$result = $this->message->headers('Host: localhost:80');
$this->assertEqual($expected, $result);
$expected = 'localhost:80';
$result = $this->message->headers('Host');
$this->assertEqual($expected, $result);
$result = $this->message->headers('Host', false);
$this->assertFalse($result);
}