diff --git a/tests/Composer/Test/Package/Version/VersionParserTest.php b/tests/Composer/Test/Package/Version/VersionParserTest.php index e6d731dc9..b3c8e24d2 100644 --- a/tests/Composer/Test/Package/Version/VersionParserTest.php +++ b/tests/Composer/Test/Package/Version/VersionParserTest.php @@ -90,6 +90,7 @@ class VersionParserTest extends \PHPUnit_Framework_TestCase 'parses x' => array('v1.x', '1.9999999.9999999.9999999-dev'), 'parses *' => array('v1.*', '1.9999999.9999999.9999999-dev'), 'parses digits' => array('v1.0', '1.0.9999999.9999999-dev'), + 'parses digits/2' => array('2.0', '2.0.9999999.9999999-dev'), 'parses long x' => array('v1.0.x', '1.0.9999999.9999999-dev'), 'parses long *' => array('v1.0.3.*', '1.0.3.9999999-dev'), 'parses long digits' => array('v2.4.0', '2.4.0.9999999-dev'), diff --git a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php index 372300472..082f9b0f4 100644 --- a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php +++ b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php @@ -99,7 +99,7 @@ class FilesystemRepositoryTest extends TestCase ->expects($this->once()) ->method('write') ->with(array( - array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10') + array('name' => 'mypkg', 'type' => 'library', 'names' => array('mypkg'), 'version' => '0.1.10', 'version_normalized' => '0.1.10.0') )); $repository->addPackage($this->getPackage('mypkg', '0.1.10'));