public function __construct($data=array(), $statusCode=Http::STATUS_OK) {
$this->data = $data;
$this->setStatus($statusCode);
- $this->addHeader('Content-type', 'application/json; charset=utf-8');
+ $this->addHeader('Content-Type', 'application/json; charset=utf-8');
}
public function testHeader() {
$headers = $this->json->getHeaders();
- $this->assertEquals('application/json; charset=utf-8', $headers['Content-type']);
+ $this->assertEquals('application/json; charset=utf-8', $headers['Content-Type']);
}