예제 #1
0
 /**
  * @override
  */
 protected function setUp()
 {
     $class = $this->getLoaderClass();
     $this->temp = new Temp();
     $this->dir = $this->temp->createDir();
     $this->locator = new FileLocator($this->dir);
     $this->loader = new $class($this->locator);
 }
예제 #2
0
 /**
  * @override
  */
 protected function setUp()
 {
     $this->helper = new ConfigHelper();
     $this->previous = realpath('.');
     $this->temp = new Temp();
     $this->dir = $this->temp->createDir();
     chdir($this->dir);
 }
예제 #3
0
 /**
  * @override
  */
 protected function setUp()
 {
     $finder = new ExecutableFinder();
     if (null === $finder->find('git')) {
         $this->markTestSkipped('The "git" command is not available.');
     }
     $this->helper = new GitHelper();
     $this->temp = new Temp();
     $this->dir = $this->temp->createDir();
     exec("cd {$this->dir} && git init");
     touch($this->dir . '/test');
     exec("cd {$this->dir} && git add test");
     exec("cd {$this->dir} && git commit -m \"Creating a test repository.\"");
     exec("cd {$this->dir} && git tag 1.0.0");
     touch($this->dir . '/test2');
     exec("cd {$this->dir} && git add test2");
     exec("cd {$this->dir} && git commit -m \"Bumping up version.\"");
     exec("cd {$this->dir} && git tag 1.1.0");
 }