diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-20 08:53:48 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-20 08:53:48 +0100 |
commit | a079269166d120bcbcb33d34f4b1c8f60d102e32 (patch) | |
tree | c3ae8596608e94e58ab1624ef78b8ef33c5323a0 /tests/Framework/Bootstrap.php | |
parent | a8ffab3f4ff54af41c9041a30eb989954d6ffc17 (diff) |
Fix version comparisons with -stable suffix (#1488876)
Diffstat (limited to 'tests/Framework/Bootstrap.php')
-rw-r--r-- | tests/Framework/Bootstrap.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Framework/Bootstrap.php b/tests/Framework/Bootstrap.php index d18fd371b..904be7e3b 100644 --- a/tests/Framework/Bootstrap.php +++ b/tests/Framework/Bootstrap.php @@ -207,4 +207,12 @@ class Framework_Bootstrap extends PHPUnit_Framework_TestCase $this->assertFalse($result, "Invalid ASCII (UTF-8 character [2])"); } + /** + * bootstrap.php: version_parse() + */ + function test_version_parse() + { + $this->assertEquals('0.9.0', version_parse('0.9-stable')); + $this->assertEquals('0.9.99', version_parse('0.9-git')); + } } |