12 $header = "Foo: bar\nBar: foo\n";
13 var_dump(array("Foo"=>"bar","Bar"=>"foo") === http\Header::parse($header));
15 $headers = http\Header::parse($header, "http\\Header");
16 var_dump(2 === count($headers));
17 var_dump(2 === array_reduce($headers, function($count, $header) {
18 return $count + ($header instanceof http\Header);