mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
review fixes
This commit is contained in:
parent
fa5de786ff
commit
397ae2d7c8
5 changed files with 10 additions and 20 deletions
|
@ -31,13 +31,10 @@ class PerforceDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
protected $repoConfig;
|
||||
protected $repository;
|
||||
protected $testPath;
|
||||
protected $fs;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
$this->fs = new Filesystem;
|
||||
$this->testPath = sys_get_temp_dir() . '/composer-test';
|
||||
$this->fs->ensureDirectoryExists($this->testPath);
|
||||
$this->repoConfig = $this->getRepoConfig();
|
||||
$this->config = $this->getConfig();
|
||||
$this->io = $this->getMockIoInterface();
|
||||
|
@ -56,7 +53,8 @@ class PerforceDownloaderTest extends \PHPUnit_Framework_TestCase
|
|||
$this->config = null;
|
||||
$this->repoConfig = null;
|
||||
if (is_dir($this->testPath)) {
|
||||
$this->fs->removeDirectory($this->testPath);
|
||||
$fs = new Filesystem;
|
||||
$fs->removeDirectory($this->testPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue