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