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

Basic handling of stability flags

This commit is contained in:
Jordi Boggiano 2012-04-23 23:53:34 +02:00
parent 1aaae5284b
commit ef28f3b067
6 changed files with 109 additions and 32 deletions

View file

@ -106,6 +106,12 @@ class VersionParserTest extends \PHPUnit_Framework_TestCase
);
}
public function testParseConstraintsIgnoresStabilityFlag()
{
$parser = new VersionParser;
$this->assertSame((string) new VersionConstraint('=', '1.0.0.0'), (string) $parser->parseConstraints('1.0@dev'));
}
/**
* @dataProvider simpleConstraints
*/