mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Merge branch '2.2' into main
This commit is contained in:
commit
bab974575c
31 changed files with 138 additions and 629 deletions
|
@ -314,4 +314,15 @@ class ArrayLoaderTest extends TestCase
|
|||
$this->assertArrayHasKey('composer-plugin-api', $links);
|
||||
$this->assertSame('6.6.6', $links['composer-plugin-api']->getConstraint()->getPrettyString());
|
||||
}
|
||||
|
||||
public function testNoneStringVersion()
|
||||
{
|
||||
$config = array(
|
||||
'name' => 'acme/package',
|
||||
'version' => 1,
|
||||
);
|
||||
|
||||
$package = $this->loader->load($config);
|
||||
$this->assertSame('1', $package->getPrettyVersion());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue