do not use env

main
Ion Bazan 4 years ago
parent a2137d5263
commit db32d6bc18

@ -8,10 +8,14 @@
convertErrorsToExceptions="true" convertErrorsToExceptions="true"
convertNoticesToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
strict="false"
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false"
bootstrap="tests/bootstrap.php" bootstrap="tests/bootstrap.php"
> >
<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
</php>
<testsuites> <testsuites>
<testsuite name="Composer Test Suite"> <testsuite name="Composer Test Suite">
<directory>./tests/Composer/</directory> <directory>./tests/Composer/</directory>

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

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

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

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

Loading…
Cancel
Save