public function testSetHeader() { $this->response->setHeaders(array(), true); $array = array('X-Name' => 'Joe', 'X-Age' => '30'); foreach ($array as $k => $v) { $this->response->setHeader($k, $v); } $array = array('X-Name' => 'Joe', 'X-Age' => '30', 'X-ApiKey' => 1234); foreach ($array as $k => $v) { $this->response->setHeader($k, $v, false); } $this->assertCount(3, $this->response->getHeaders()); }