Exemple #1
0
 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);
 }
Exemple #3
0
 public function clearHeaders()
 {
     $this->response->clearHeaders();
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testSetDataArgumentIsNotAString()
 {
     $this->object->setData(1, 'testValue');
 }