/**
  * {@inheritdoc}
  */
 public function setPrivateHeaders($ttl)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setPrivateHeaders');
     if (!$pluginInfo) {
         return parent::setPrivateHeaders($ttl);
     } else {
         return $this->___callPlugins('setPrivateHeaders', func_get_args(), $pluginInfo);
     }
 }
Exemple #2
0
 /**
  * Test for setting public headers without time to live parameter
  */
 public function testSetPrivateHeadersWithoutTtl()
 {
     $this->setExpectedException('InvalidArgumentException', 'Time to live is a mandatory parameter for set private headers');
     $this->model->setPrivateHeaders(null);
 }