RegressionTest.php 479 B

1234567891011121314151617181920
  1. <?php
  2. namespace vierbergenlars\SemVer\Tests;
  3. use PHPUnit\Framework\TestCase;
  4. use vierbergenlars\SemVer;
  5. class RegressionTest extends TestCase
  6. {
  7. public function testBug23()
  8. {
  9. $this->assertTrue(SemVer\version::lt('3.0.0', '4.0.0-beta.1'), '3.0.0 < 4.0.0-beta.1 (Bug #23)');
  10. }
  11. public function testBug24()
  12. {
  13. $this->assertFalse(SemVer\version::gt('4.0.0-beta.9', '4.0.0-beta.10'),
  14. '4.0.0-beta.9 < 4.0.0-beta.10 (Bug #24)');
  15. }
  16. }