public function testGetHeaderLinesUsesGlue()
 {
     $this->mock->setHeaders(array('a' => 'b', 'c' => 'd'));
     $this->mock->addHeader('a', 'e');
     $this->mock->getHeader('a')->setGlue('!');
     $this->assertEquals(array('a: b! e', 'c: d'), $this->mock->getHeaderLines());
 }
Ejemplo n.º 2
0
 public function setHeaders(array $headers)
 {
     parent::setHeaders($headers);
     $this->resetStatusLine();
 }