1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add command testing utilities to TestCase, add tests for ConfigCommand

This commit is contained in:
Jordi Boggiano 2022-05-11 16:05:35 +02:00
parent ebfdae8883
commit fdab6657c7
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
35 changed files with 253 additions and 73 deletions

View file

@ -148,7 +148,7 @@ class ClassMapGeneratorTest extends TestCase
{
$this->checkIfFinderIsAvailable();
$tempDir = $this->getUniqueTmpDirectory();
$tempDir = self::getUniqueTmpDirectory();
$this->ensureDirectoryExistsAndClear($tempDir . '/other');
$finder = new Finder();
@ -190,7 +190,7 @@ class ClassMapGeneratorTest extends TestCase
*/
public function testUnambiguousReference(): void
{
$tempDir = $this->getUniqueTmpDirectory();
$tempDir = self::getUniqueTmpDirectory();
file_put_contents($tempDir . '/A.php', "<?php\nclass A {}");
file_put_contents(