mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Check exclude from downloaded composer.json
This commit is contained in:
parent
f346274f9a
commit
ca7cb68dd5
2 changed files with 10 additions and 2 deletions
|
@ -79,13 +79,13 @@ class ArchiveManagerTest extends ArchiverTest
|
|||
throw new \RuntimeException('Could not init: '.$this->process->getErrorOutput());
|
||||
}
|
||||
|
||||
$result = file_put_contents('b', 'a');
|
||||
$result = file_put_contents('composer.json', '{"name":"faker/faker", "description": "description", "license": "MIT"}');
|
||||
if (false === $result) {
|
||||
chdir($currentWorkDir);
|
||||
throw new \RuntimeException('Could not save file.');
|
||||
}
|
||||
|
||||
$result = $this->process->execute('git add b && git commit -m "commit b" -q', $output, $this->testDir);
|
||||
$result = $this->process->execute('git add composer.json && git commit -m "commit composer.json" -q', $output, $this->testDir);
|
||||
if ($result > 0) {
|
||||
chdir($currentWorkDir);
|
||||
throw new \RuntimeException('Could not commit: '.$this->process->getErrorOutput());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue