1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

do not use env

This commit is contained in:
Ion Bazan 2020-02-07 12:43:57 +08:00
parent a2137d5263
commit db32d6bc18
5 changed files with 7 additions and 8 deletions

View file

@ -53,7 +53,7 @@ class ApplicationTest extends TestCase
$index = 0;
$outputMock->expects($this->at($index++))
->method("writeError");
->method("write");
if (extension_loaded('xdebug')) {
$outputMock->expects($this->at($index++))

View file

@ -105,11 +105,6 @@ class CacheTest extends TestCase
public function testClearCache()
{
$this->finder
->method('removeDirectory')
->with($this->root)
->willReturn(true);
$this->assertTrue($this->cache->clear());
for ($i = 0; $i < 3; $i++) {

View file

@ -35,7 +35,7 @@ class LibraryInstallerTest extends TestCase
$this->fs = new Filesystem;
$this->composer = new Composer();
$this->config = new Config();
$this->config = new Config(false);
$this->composer->setConfig($this->config);
$this->rootDir = $this->getUniqueTmpDirectory();

View file

@ -102,7 +102,7 @@ class PluginInstallerTest extends TestCase
$this->autoloadGenerator = new AutoloadGenerator($dispatcher);
$this->composer = new Composer();
$config = new Config();
$config = new Config(false);
$this->composer->setConfig($config);
$this->composer->setDownloadManager($dm);
$this->composer->setRepositoryManager($rm);