mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add more test requirements
This commit is contained in:
parent
882496b926
commit
ae7107fc22
2 changed files with 10 additions and 9 deletions
|
@ -86,6 +86,9 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
|
|||
$process->execute('git checkout master', $null);
|
||||
$process->execute('git branch 1.0', $null);
|
||||
|
||||
// add 1.0.x branch
|
||||
$process->execute('git branch 1.0.x', $null);
|
||||
|
||||
// update master to 2.0
|
||||
$composer['version'] = '2.0.0';
|
||||
file_put_contents('composer.json', json_encode($composer));
|
||||
|
@ -112,8 +115,9 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
|
|||
{
|
||||
$expected = array(
|
||||
'0.6.0' => true,
|
||||
'0.9.0' => true,
|
||||
'1.0.0' => true,
|
||||
'1.0-dev' => true,
|
||||
'1.0.x-dev' => true,
|
||||
'dev-feature-b' => true,
|
||||
'dev-feature-a' => true,
|
||||
'dev-master' => true,
|
||||
|
@ -131,10 +135,6 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
|
|||
}
|
||||
}
|
||||
|
||||
if ($expected) {
|
||||
$this->fail('Missing versions: '.implode(', ', $expected));
|
||||
}
|
||||
|
||||
$this->pass();
|
||||
$this->assertEmpty($expected, 'Missing versions: '.implode(', ', array_keys($expected)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue