protected function getViewScriptSuffix() { $contentSubType = ucfirst($this->response->getContentSubType()); if ($contentSubType == 'Html') { return ''; } return $contentSubType; }
/** * @param string $header * @throws Exception */ protected function setResponseHeader($header) { $this->response->clearHeaders(); $this->response->addHeader($header); }
public function clearHeaders() { $this->response->clearHeaders(); }
/** * @expectedException InvalidArgumentException */ public function testSetDataArgumentIsNotAString() { $this->object->setData(1, 'testValue'); }