protected function getResponseMock() { if (!isset($this->responseMock)) { $this->responseMock = $this->getMock('Symfony\\Component\\HttpFoundation\\Response'); } return $this->responseMock; }