コード例 #1
0
 public function testCreateExistingRepository()
 {
     $repoName = 'test';
     $rootPath = realpath(__DIR__ . '/../../../../var/data');
     $repoPath = $rootPath . '/' . $repoName;
     $fs = new Filesystem();
     $fs->mkdir($repoPath);
     $repo = \Gitonomy\Git\Admin::init($repoPath, false);
     $this->setExpectedException('\\InvalidArgumentException');
     $repoService = new RepositoryService($rootPath);
     $testRepo = $repoService->createRepository($repoName);
 }
コード例 #2
0
 function __construct(RepositoryService $repositoryService, $adminRepository)
 {
     $this->adminRepository = $repositoryService->getRepository($adminRepository);
     $this->yamlParser = new Parser();
 }