예제 #1
0
 public function setUp()
 {
     $this->tmpdir = sys_get_temp_dir() . '/' . uniqid('wbcrte-svn-');
     $svnReposGenerator = new SvnReposGenerator(__DIR__ . '/../Fixtures/skeleton/svn/');
     list($this->svndir, $this->wcdir) = $svnReposGenerator->generate($this->tmpdir);
     parent::setUp();
 }
예제 #2
0
파일: SvnTest.php 프로젝트: aburva1/vcs
 public function getClient()
 {
     $this->tmpdir = sys_get_temp_dir() . '/' . uniqid('wbcrte-svn-');
     $svnReposGenerator = new SvnReposGenerator(__DIR__ . '/../Fixtures/skeleton/svn/');
     list($this->svndir, $this->wcdir) = $svnReposGenerator->generate($this->tmpdir);
     $bin = getenv('SVN_BIN') ? getenv('SVN_BIN') : '/usr/local/bin/svn';
     $parser = new CliParser();
     $adapter = new CliAdapter($bin, new Cli(), $parser);
     $client = new Svn('file://' . $this->svndir, $adapter);
     return $client;
 }