1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Revert "Merge pull request #9273 from nicolas-grekas/dev-version"

This reverts commit d2d606ced2, reversing
changes made to 4a8dbcd145.
This commit is contained in:
Nicolas Grekas 2021-01-27 14:03:44 +01:00
parent 2cb9630320
commit 079e501ac8
6 changed files with 4 additions and 72 deletions

View file

@ -201,28 +201,4 @@ class RootPackageLoaderTest extends TestCase
$this->assertEquals("dev-latest-production", $package->getPrettyVersion());
}
/**
* @dataProvider provideExtraBranchVersion
*/
public function testLoadExtraBranchVersion($branchVersion)
{
$package = $this->loadPackage(array(
'extra' => array(
'branch-version' => $branchVersion,
),
));
$this->assertEquals('1.2.x-dev', $package->getPrettyVersion());
}
public function provideExtraBranchVersion()
{
return array(
array('1.2'),
array('1.2.x'),
array('1.2-dev'),
array('1.2.x-dev'),
);
}
}