public function testAddingHeadersPreservesOriginalHeaderCase()
 {
     $this->mock->addHeaders(array('test' => '123', 'Test' => 'abc'));
     $this->mock->addHeader('test', '456');
     $this->mock->addHeader('test', '789');
     $header = $this->mock->getHeader('test');
     $this->assertContains('123', $header->toArray());
     $this->assertContains('456', $header->toArray());
     $this->assertContains('789', $header->toArray());
     $this->assertContains('abc', $header->toArray());
 }
Exemplo n.º 2
0
 public function addHeader($header)
 {
     parent::addHeader($header);
     $this->resetStatusLine();
 }