public function testSetHeadersOverwritesAllHeaders() { $h = new puzzle_message_Request('GET', 'http://foo.com'); $h->setHeader('foo', 'bar'); $h->setHeaders(array('foo' => 'a', 'boo' => 'b')); $this->assertEquals(array('foo' => array('a'), 'boo' => array('b')), $h->getHeaders()); }