Merge pull request #5992 from AnrDaemon/fix-git-skips-proper
Properly skip GitDownloaderTest if git is not availablepull/5999/head
commit
2782d37a15
|
@ -25,19 +25,10 @@ class GitDownloaderTest extends TestCase
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $workingDir;
|
private $workingDir;
|
||||||
|
|
||||||
private $skipped;
|
|
||||||
|
|
||||||
protected function initialize()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
$this->skipIfNotExecutable('git');
|
|
||||||
} catch (\PHPUnit_Framework_SkippedTestError $e) {
|
|
||||||
$this->skipped = 'This test needs a git binary in the PATH to be able to run';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
|
$this->skipIfNotExecutable('git');
|
||||||
|
|
||||||
$this->fs = new Filesystem;
|
$this->fs = new Filesystem;
|
||||||
$this->workingDir = $this->getUniqueTmpDirectory();
|
$this->workingDir = $this->getUniqueTmpDirectory();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue