OXIESEC PANEL
- Current Dir:
/
/
opt
/
.wp-cli
/
packages
/
vendor
/
composer
/
semver
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/24/2025 12:05:13 PM
rwxr-xr-x
📄
ComparatorTest.php
7.04 KB
02/24/2025 12:05:13 PM
rw-r--r--
📄
CompilingMatcherTest.php
847 bytes
03/20/2024 11:17:26 AM
rw-r--r--
📁
Constraint
-
02/24/2025 12:05:13 PM
rwxr-xr-x
📄
IntervalsTest.php
33.83 KB
02/24/2025 12:05:13 PM
rw-r--r--
📄
SemverTest.php
9.09 KB
02/24/2025 12:05:13 PM
rw-r--r--
📄
SubsetsTest.php
7.04 KB
02/24/2025 12:05:13 PM
rw-r--r--
📄
VersionParserTest.php
39.77 KB
09/06/2025 12:29:47 PM
rw-r--r--
Editing: CompilingMatcherTest.php
Close
<?php /* * This file is part of composer/semver. * * (c) Composer <https://github.com/composer> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Composer\Semver; use Composer\Semver\Constraint\Constraint; use Composer\Semver\Constraint\MultiConstraint; use PHPUnit\Framework\TestCase; class CompilingMatcherTest extends TestCase { public function testMatch() { $this->assertTrue(CompilingMatcher::match(new Constraint('>=', '1'), Constraint::OP_EQ, '2')); } public function testCacheKey() { $this->assertFalse(CompilingMatcher::match(new Constraint('>=', '2.11'), Constraint::OP_EQ, '1.0')); $this->assertTrue(CompilingMatcher::match(new Constraint('>=', '2.1'), Constraint::OP_EQ, '11.0')); } }