mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Merge remote-tracking branch 'github-composer/2.0' into solve-without-installed
* github-composer/2.0: (63 commits) Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 Prepare 1.9.1 changelog Output a hint that maybe you are not in the right directory, fixes #8404 Fix PSR warnings for optimized autoloader, refs #8397, refs #8403 Fix tests for PSR-fix in optimized autoloader, refs #8397 Fix tests for PSR-fix in optimized autoloader, refs #8397 Change PSR-fix for optimized autoloader to only warn for now, refs #8397 Fix output of dump-autoload command to avoid interfering with warnings, refs #8397 Remove credentials from git remotes in cache and vendor dirs Avoid overwriting credentials with existing ones from git repos, refs #8293 Fix github auth to try https with pwd also, fixes #8356 Fix gitlab support for basic-auth fallback from ssh URLs Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351 Move test file parsing into try/catch block to avoid phpunit swallowing errors make optimized autoloader respect PSR standards Validate composer show with --tree and --path options set (#8390) Don't show root warning for docker containers Added phpdoc for ComposerAutoloaderInit$SHA1::getLoader() (#8393) Validate schema name, type and version Fix require command to allow working on network mounts, fixes #8231 ...
This commit is contained in:
commit
97ec2d7b61
59 changed files with 650 additions and 176 deletions
|
@ -243,6 +243,9 @@ class InstallerTest extends TestCase
|
|||
// so store value temporarily in reference for later assetion
|
||||
$actualLock = $hash;
|
||||
}));
|
||||
} elseif ($expectLock === false) {
|
||||
$lockJsonMock->expects($this->never())
|
||||
->method('write');
|
||||
}
|
||||
|
||||
$contents = json_encode($composerConfig);
|
||||
|
@ -334,15 +337,15 @@ class InstallerTest extends TestCase
|
|||
continue;
|
||||
}
|
||||
|
||||
$testData = $this->readTestFile($file, $fixturesDir);
|
||||
|
||||
$installed = array();
|
||||
$installedDev = array();
|
||||
$lock = array();
|
||||
$expectLock = array();
|
||||
$expectResult = 0;
|
||||
|
||||
try {
|
||||
$testData = $this->readTestFile($file, $fixturesDir);
|
||||
|
||||
$installed = array();
|
||||
$installedDev = array();
|
||||
$lock = array();
|
||||
$expectLock = array();
|
||||
$expectResult = 0;
|
||||
|
||||
$message = $testData['TEST'];
|
||||
$condition = !empty($testData['CONDITION']) ? $testData['CONDITION'] : null;
|
||||
$composer = JsonFile::parseJson($testData['COMPOSER']);
|
||||
|
@ -373,7 +376,11 @@ class InstallerTest extends TestCase
|
|||
}
|
||||
$run = $testData['RUN'];
|
||||
if (!empty($testData['EXPECT-LOCK'])) {
|
||||
$expectLock = JsonFile::parseJson($testData['EXPECT-LOCK']);
|
||||
if ($testData['EXPECT-LOCK'] === 'false') {
|
||||
$expectLock = false;
|
||||
} else {
|
||||
$expectLock = JsonFile::parseJson($testData['EXPECT-LOCK']);
|
||||
}
|
||||
}
|
||||
$expectOutput = isset($testData['EXPECT-OUTPUT']) ? $testData['EXPECT-OUTPUT'] : null;
|
||||
$expect = $testData['EXPECT'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue