/
var
/
www
/
vhosts
/
nabawater
/
vendor
/
phpunit
/
phpunit
/
src
/
Framework
/
/var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Framework
mkdir
upload
Name
Size
Mode
Actions
Assert/
-
0775
rm
Constraint/
-
0775
rm
Error/
-
0775
rm
TestSuite/
-
0775
rm
Assert.php
89651
0664
edit
dl
rm
AssertionFailedError.php
586
0664
edit
dl
rm
BaseTestListener.php
1457
0664
edit
dl
rm
CodeCoverageException.php
315
0664
edit
dl
rm
Constraint.php
4294
0664
edit
dl
rm
CoveredCodeNotExecutedException.php
481
0664
edit
dl
rm
Error.php
755
0664
edit
dl
rm
Exception.php
2287
0664
edit
dl
rm
ExceptionWrapper.php
2151
0664
edit
dl
rm
ExpectationFailedException.php
1128
0664
edit
dl
rm
IncompleteTest.php
426
0664
edit
dl
rm
IncompleteTestCase.php
1540
0664
edit
dl
rm
IncompleteTestError.php
482
0664
edit
dl
rm
InvalidCoversTargetException.php
334
0664
edit
dl
rm
MissingCoversAnnotationException.php
493
0664
edit
dl
rm
OutputError.php
438
0664
edit
dl
rm
RiskyTest.php
372
0664
edit
dl
rm
RiskyTestError.php
466
0664
edit
dl
rm
SelfDescribing.php
481
0664
edit
dl
rm
SkippedTest.php
345
0664
edit
dl
rm
SkippedTestCase.php
1465
0664
edit
dl
rm
SkippedTestError.php
472
0664
edit
dl
rm
SkippedTestSuiteError.php
483
0664
edit
dl
rm
SyntheticError.php
1496
0664
edit
dl
rm
Test.php
602
0664
edit
dl
rm
TestCase.php
71642
0664
edit
dl
rm
TestFailure.php
3847
0664
edit
dl
rm
TestListener.php
2817
0664
edit
dl
rm
TestResult.php
33699
0664
edit
dl
rm
TestSuite.php
28479
0664
edit
dl
rm
UnintentionallyCoveredCodeError.php
465
0664
edit
dl
rm
Warning.php
572
0664
edit
dl
rm
WarningTestCase.php
1338
0664
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php
(2151B)
<?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. */ /** * Wraps Exceptions thrown by code under test. * * Re-instantiates Exceptions thrown by user-space code to retain their original * class names, properties, and stack traces (but without arguments). * * Unlike PHPUnit_Framework_Exception, the complete stack of previous Exceptions * is processed. */ class PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception { /** * @var string */ protected $className; /** * @var PHPUnit_Framework_ExceptionWrapper|null */ protected $previous; /** * @param Throwable|Exception $e */ public function __construct($e) { // PDOException::getCode() is a string. // @see http://php.net/manual/en/class.pdoexception.php#95812 parent::__construct($e->getMessage(), (int) $e->getCode()); $this->className = get_class($e); $this->file = $e->getFile(); $this->line = $e->getLine(); $this->serializableTrace = $e->getTrace(); foreach ($this->serializableTrace as $i => $call) { unset($this->serializableTrace[$i]['args']); } if ($e->getPrevious()) { $this->previous = new self($e->getPrevious()); } } /** * @return string */ public function getClassName() { return $this->className; } /** * @return PHPUnit_Framework_ExceptionWrapper */ public function getPreviousWrapped() { return $this->previous; } /** * @return string */ public function __toString() { $string = PHPUnit_Framework_TestFailure::exceptionToString($this); if ($trace = PHPUnit_Util_Filter::getFilteredStacktrace($this)) { $string .= "\n" . $trace; } if ($this->previous) { $string .= "\nCaused by\n" . $this->previous; } return $string; } }
Save
cmd:
run