protected function getLocalMock() { if (!$this->hasLocalMock()) { $this->localMock = Mockery::mock(); } return $this->localMock; }