protected function _GivenABackendGitolite() { $driver = mock('Git_GitoliteDriver'); $dao = mock('GitDao'); $permissionsManager = mock('PermissionsManager'); $gitPlugin = mock('GitPlugin'); $backend = new Git_Backend_Gitolite($driver, mock('Logger')); $backend->setDao($dao); $backend->setPermissionsManager($permissionsManager); $backend->setGitPlugin($gitPlugin); return $backend; }
protected function _GivenABackendGitolite() { $driver = new MockGit_GitoliteDriver(); $dao = new MockGitDao(); $permissionsManager = new MockPermissionsManager(); $backend = new Git_Backend_Gitolite($driver); $backend->setDao($dao); $backend->setPermissionsManager($permissionsManager); return $backend; }