1234567891011121314151617181920 |
- <?php
- namespace vierbergenlars\SemVer\Tests;
- use PHPUnit\Framework\TestCase;
- use vierbergenlars\SemVer;
- class RegressionTest extends TestCase
- {
- public function testBug23()
- {
- $this->assertTrue(SemVer\version::lt('3.0.0', '4.0.0-beta.1'), '3.0.0 < 4.0.0-beta.1 (Bug #23)');
- }
- public function testBug24()
- {
- $this->assertFalse(SemVer\version::gt('4.0.0-beta.9', '4.0.0-beta.10'),
- '4.0.0-beta.9 < 4.0.0-beta.10 (Bug #24)');
- }
- }
|