commit
306f5518d6
|
@ -187,6 +187,8 @@ class ArchivableFilesFinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$this->finder = new ArchivableFilesFinder($this->sources, array());
|
$this->finder = new ArchivableFilesFinder($this->sources, array());
|
||||||
|
|
||||||
$this->assertArchivableFiles($this->getArchivedFiles('git init && '.
|
$this->assertArchivableFiles($this->getArchivedFiles('git init && '.
|
||||||
|
'git config user.email "you@example.com" && '.
|
||||||
|
'git config user.name "Your Name" && '.
|
||||||
'git add .git* && '.
|
'git add .git* && '.
|
||||||
'git commit -m "ignore rules" && '.
|
'git commit -m "ignore rules" && '.
|
||||||
'git add . && '.
|
'git add . && '.
|
||||||
|
|
|
@ -78,6 +78,18 @@ class ArchiveManagerTest extends ArchiverTest
|
||||||
throw new \RuntimeException('Could not init: '.$this->process->getErrorOutput());
|
throw new \RuntimeException('Could not init: '.$this->process->getErrorOutput());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result = $this->process->execute('git config user.email "you@example.com"', $output, $this->testDir);
|
||||||
|
if ($result > 0) {
|
||||||
|
chdir($currentWorkDir);
|
||||||
|
throw new \RuntimeException('Could not config: '.$this->process->getErrorOutput());
|
||||||
|
}
|
||||||
|
|
||||||
|
$result = $this->process->execute('git config user.name "Your Name"', $output, $this->testDir);
|
||||||
|
if ($result > 0) {
|
||||||
|
chdir($currentWorkDir);
|
||||||
|
throw new \RuntimeException('Could not config: '.$this->process->getErrorOutput());
|
||||||
|
}
|
||||||
|
|
||||||
$result = file_put_contents('composer.json', '{"name":"faker/faker", "description": "description", "license": "MIT"}');
|
$result = file_put_contents('composer.json', '{"name":"faker/faker", "description": "description", "license": "MIT"}');
|
||||||
if (false === $result) {
|
if (false === $result) {
|
||||||
chdir($currentWorkDir);
|
chdir($currentWorkDir);
|
||||||
|
|
Loading…
Reference in New Issue