/
var
/
www
/
vhosts
/
nabawater
/
vendor
/
phpunit
/
phpunit
/
src
/
Framework
/
Constraint
/
/var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Framework/Constraint
mkdir
upload
Name
Size
Mode
Actions
JsonMatches/
-
0775
rm
And.php
3008
0664
edit
dl
rm
ArrayHasKey.php
1927
0664
edit
dl
rm
ArraySubset.php
2788
0664
edit
dl
rm
Attribute.php
2404
0664
edit
dl
rm
Callback.php
1331
0664
edit
dl
rm
ClassHasAttribute.php
1938
0664
edit
dl
rm
ClassHasStaticAttribute.php
1304
0664
edit
dl
rm
Composite.php
1934
0664
edit
dl
rm
Count.php
3007
0664
edit
dl
rm
DirectoryExists.php
1425
0664
edit
dl
rm
Exception.php
2148
0664
edit
dl
rm
ExceptionCode.php
1573
0664
edit
dl
rm
ExceptionMessage.php
1952
0664
edit
dl
rm
ExceptionMessageRegExp.php
1834
0664
edit
dl
rm
FileExists.php
1410
0664
edit
dl
rm
GreaterThan.php
1174
0664
edit
dl
rm
IsAnything.php
1540
0664
edit
dl
rm
IsEmpty.php
1525
0664
edit
dl
rm
IsEqual.php
4848
0664
edit
dl
rm
IsFalse.php
836
0664
edit
dl
rm
IsFinite.php
840
0664
edit
dl
rm
IsIdentical.php
3746
0664
edit
dl
rm
IsInfinite.php
848
0664
edit
dl
rm
IsInstanceOf.php
2189
0664
edit
dl
rm
IsJson.php
1795
0664
edit
dl
rm
IsNan.php
828
0664
edit
dl
rm
IsNull.php
832
0664
edit
dl
rm
IsReadable.php
1419
0664
edit
dl
rm
IsTrue.php
832
0664
edit
dl
rm
IsType.php
3386
0664
edit
dl
rm
IsWritable.php
1419
0664
edit
dl
rm
JsonMatches.php
1519
0664
edit
dl
rm
LessThan.php
1165
0664
edit
dl
rm
Not.php
4131
0664
edit
dl
rm
ObjectHasAttribute.php
876
0664
edit
dl
rm
Or.php
2800
0664
edit
dl
rm
PCREMatch.php
1420
0664
edit
dl
rm
SameSize.php
541
0664
edit
dl
rm
StringContains.php
1805
0664
edit
dl
rm
StringEndsWith.php
1190
0664
edit
dl
rm
StringMatches.php
2276
0664
edit
dl
rm
StringStartsWith.php
1173
0664
edit
dl
rm
TraversableContains.php
3436
0664
edit
dl
rm
TraversableContainsOnly.php
2428
0664
edit
dl
rm
Xor.php
2915
0664
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Framework/Constraint/And.php
(3008B)
<?php /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Logical AND. */ class PHPUnit_Framework_Constraint_And extends PHPUnit_Framework_Constraint { /** * @var PHPUnit_Framework_Constraint[] */ protected $constraints = []; /** * @var PHPUnit_Framework_Constraint */ protected $lastConstraint = null; /** * @param PHPUnit_Framework_Constraint[] $constraints * * @throws PHPUnit_Framework_Exception */ public function setConstraints(array $constraints) { $this->constraints = []; foreach ($constraints as $constraint) { if (!($constraint instanceof PHPUnit_Framework_Constraint)) { throw new PHPUnit_Framework_Exception( 'All parameters to ' . __CLASS__ . ' must be a constraint object.' ); } $this->constraints[] = $constraint; } } /** * Evaluates the constraint for parameter $other * * If $returnResult is set to false (the default), an exception is thrown * in case of a failure. null is returned otherwise. * * If $returnResult is true, the result of the evaluation is returned as * a boolean value instead: true in case of success, false in case of a * failure. * * @param mixed $other Value or object to evaluate. * @param string $description Additional information about the test * @param bool $returnResult Whether to return a result or throw an exception * * @return mixed * * @throws PHPUnit_Framework_ExpectationFailedException */ public function evaluate($other, $description = '', $returnResult = false) { $success = true; $constraint = null; foreach ($this->constraints as $constraint) { if (!$constraint->evaluate($other, $description, true)) { $success = false; break; } } if ($returnResult) { return $success; } if (!$success) { $this->fail($other, $description); } } /** * Returns a string representation of the constraint. * * @return string */ public function toString() { $text = ''; foreach ($this->constraints as $key => $constraint) { if ($key > 0) { $text .= ' and '; } $text .= $constraint->toString(); } return $text; } /** * Counts the number of constraint elements. * * @return int */ public function count() { $count = 0; foreach ($this->constraints as $constraint) { $count += count($constraint); } return $count; } }
Save
cmd:
run