protected function getGeneratorMock() { if (!isset($this->generatorMock)) { $this->generatorMock = $this->getMock('eZ\\Publish\\Core\\REST\\Common\\Output\\Generator', array(), array(), '', false); } return $this->generatorMock; }