Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.148.167.99
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
phar-io /
version /
tests /
Unit /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractVersionConstraintTest.php
790
B
-rw-r--r--
2018-07-08 09:00
AndVersionConstraintGroupTest.php
1.73
KB
-rw-r--r--
2018-07-08 09:00
AnyVersionConstraintTest.php
1.02
KB
-rw-r--r--
2018-07-08 09:00
ExactVersionConstraintTest.php
1.62
KB
-rw-r--r--
2018-07-08 09:00
GreaterThanOrEqualToVersionConstraintTest.php
1.67
KB
-rw-r--r--
2018-07-08 09:00
OrVersionConstraintGroupTest.php
2.23
KB
-rw-r--r--
2018-07-08 09:00
PreReleaseSuffixTest.php
1.26
KB
-rw-r--r--
2018-07-08 09:00
SpecificMajorAndMinorVersionConstraintTest.php
1.38
KB
-rw-r--r--
2018-07-08 09:00
SpecificMajorVersionConstraintTest.php
1.3
KB
-rw-r--r--
2018-07-08 09:00
VersionTest.php
3.68
KB
-rw-r--r--
2018-07-08 09:00
Save
Rename
<?php /* * This file is part of PharIo\Version. * * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PharIo\Version; use PHPUnit\Framework\TestCase; /** * @covers \PharIo\Version\SpecificMajorAndMinorVersionConstraint */ class SpecificMajorAndMinorVersionConstraintTest extends TestCase { public function versionProvider() { return [ // compliant versions [1, 0, new Version('1.0.2'), true], [1, 0, new Version('1.0.3'), true], [1, 1, new Version('1.1.1'), true], // non-compliant versions [2, 9, new Version('0.9.9'), false], [3, 2, new Version('2.2.3'), false], [2, 8, new Version('2.9.9'), false], ]; } /** * @dataProvider versionProvider * * @param int $major * @param int $minor * @param Version $version * @param bool $expectedResult */ public function testReturnsTrueForCompliantVersions($major, $minor, Version $version, $expectedResult) { $constraint = new SpecificMajorAndMinorVersionConstraint('foo', $major, $minor); $this->assertSame($expectedResult, $constraint->complies($version)); } }