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.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
phpunit /
phpunit /
src /
Framework /
Delete
Unzip
Name
Size
Permission
Date
Action
Assert
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
Constraint
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
Error
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
MockObject
[ DIR ]
drwxr-xr-x
2018-12-03 09:00
Assert.php
75.44
KB
-rw-r--r--
2018-12-03 09:00
AssertionFailedError.php
540
B
-rw-r--r--
2018-12-03 09:00
CodeCoverageException.php
308
B
-rw-r--r--
2018-12-03 09:00
CoveredCodeNotExecutedException.php
323
B
-rw-r--r--
2018-12-03 09:00
DataProviderTestSuite.php
854
B
-rw-r--r--
2018-12-03 09:00
Exception.php
2.26
KB
-rw-r--r--
2018-12-03 09:00
ExceptionWrapper.php
2.99
KB
-rw-r--r--
2018-12-03 09:00
ExpectationFailedException.php
1.04
KB
-rw-r--r--
2018-12-03 09:00
IncompleteTest.php
437
B
-rw-r--r--
2018-12-03 09:00
IncompleteTestCase.php
1.43
KB
-rw-r--r--
2018-12-03 09:00
IncompleteTestError.php
343
B
-rw-r--r--
2018-12-03 09:00
InvalidCoversTargetException.php
327
B
-rw-r--r--
2018-12-03 09:00
MissingCoversAnnotationException.php
324
B
-rw-r--r--
2018-12-03 09:00
OutputError.php
309
B
-rw-r--r--
2018-12-03 09:00
RiskyTest.php
282
B
-rw-r--r--
2018-12-03 09:00
RiskyTestError.php
333
B
-rw-r--r--
2018-12-03 09:00
SelfDescribing.php
471
B
-rw-r--r--
2018-12-03 09:00
SkippedTest.php
284
B
-rw-r--r--
2018-12-03 09:00
SkippedTestCase.php
1.42
KB
-rw-r--r--
2018-12-03 09:00
SkippedTestError.php
337
B
-rw-r--r--
2018-12-03 09:00
SkippedTestSuiteError.php
342
B
-rw-r--r--
2018-12-03 09:00
SyntheticError.php
1.22
KB
-rw-r--r--
2018-12-03 09:00
Test.php
514
B
-rw-r--r--
2018-12-03 09:00
TestCase.php
62.28
KB
-rw-r--r--
2018-12-03 09:00
TestFailure.php
3.43
KB
-rw-r--r--
2018-12-03 09:00
TestListener.php
1.42
KB
-rw-r--r--
2018-12-03 09:00
TestListenerDefaultImplementation.php
1.11
KB
-rw-r--r--
2018-12-03 09:00
TestResult.php
28.51
KB
-rw-r--r--
2018-12-03 09:00
TestSuite.php
25.97
KB
-rw-r--r--
2018-12-03 09:00
TestSuiteIterator.php
1.74
KB
-rw-r--r--
2018-12-03 09:00
UnintentionallyCoveredCodeError.php
458
B
-rw-r--r--
2018-12-03 09:00
Warning.php
526
B
-rw-r--r--
2018-12-03 09:00
WarningTestCase.php
1.22
KB
-rw-r--r--
2018-12-03 09:00
Save
Rename
<?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. */ namespace PHPUnit\Framework; use PHPUnit\Framework\Error\Error; use Throwable; /** * A TestFailure collects a failed test together with the caught exception. */ class TestFailure { /** * @var null|Test */ protected $failedTest; /** * @var Throwable */ protected $thrownException; /** * @var string */ private $testName; /** * Returns a description for an exception. * * @throws \InvalidArgumentException */ public static function exceptionToString(Throwable $e): string { if ($e instanceof SelfDescribing) { $buffer = $e->toString(); if ($e instanceof ExpectationFailedException && $e->getComparisonFailure()) { $buffer .= $e->getComparisonFailure()->getDiff(); } if (!empty($buffer)) { $buffer = \trim($buffer) . "\n"; } return $buffer; } if ($e instanceof Error) { return $e->getMessage() . "\n"; } if ($e instanceof ExceptionWrapper) { return $e->getClassName() . ': ' . $e->getMessage() . "\n"; } return \get_class($e) . ': ' . $e->getMessage() . "\n"; } /** * Constructs a TestFailure with the given test and exception. * * @param Throwable $t */ public function __construct(Test $failedTest, $t) { if ($failedTest instanceof SelfDescribing) { $this->testName = $failedTest->toString(); } else { $this->testName = \get_class($failedTest); } if (!$failedTest instanceof TestCase || !$failedTest->isInIsolation()) { $this->failedTest = $failedTest; } $this->thrownException = $t; } /** * Returns a short description of the failure. */ public function toString(): string { return \sprintf( '%s: %s', $this->testName, $this->thrownException->getMessage() ); } /** * Returns a description for the thrown exception. * * @throws \InvalidArgumentException */ public function getExceptionAsString(): string { return self::exceptionToString($this->thrownException); } /** * Returns the name of the failing test (including data set, if any). */ public function getTestName(): string { return $this->testName; } /** * Returns the failing test. * * Note: The test object is not set when the test is executed in process * isolation. * * @see Exception */ public function failedTest(): ?Test { return $this->failedTest; } /** * Gets the thrown exception. */ public function thrownException(): Throwable { return $this->thrownException; } /** * Returns the exception's message. */ public function exceptionMessage(): string { return $this->thrownException()->getMessage(); } /** * Returns true if the thrown exception * is of type AssertionFailedError. */ public function isFailure(): bool { return $this->thrownException() instanceof AssertionFailedError; } }