public function testDisableCache() { // disable cache $this->structure->getCacheLifeTime()->willReturn(0); $this->response->setPublic()->shouldNotBeCalled(); $this->response->setMaxAge($this->maxAge)->shouldNotBeCalled(); $this->response->setSharedMaxAge($this->sharedMaxAge)->shouldNotBeCalled(); $this->handler->updateResponse($this->response->reveal(), $this->structure->reveal()); }
public function testUpdateResponse() { $this->handler1->updateResponse($this->response->reveal(), $this->structure->reveal())->shouldBeCalled(); $this->handler2->updateResponse($this->response->reveal(), $this->structure->reveal())->shouldBeCalled(); $this->handler->updateResponse($this->response->reveal(), $this->structure->reveal()); }