File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod
Upload
[..]
AfterLastTestMethodCalled.php (1.82 KB)
Edit
Rename
Del
AfterLastTestMethodCalledSubscriber.php (565 B)
Edit
Rename
Del
AfterLastTestMethodErrored.php (2.21 KB)
Edit
Rename
Del
AfterLastTestMethodErroredSubscriber.php (567 B)
Edit
Rename
Del
AfterLastTestMethodFailed.php (2.21 KB)
Edit
Rename
Del
AfterLastTestMethodFailedSubscriber.php (565 B)
Edit
Rename
Del
AfterLastTestMethodFinishedSubscriber.php (569 B)
Edit
Rename
Del
AfterTestMethodCalled.php (1.82 KB)
Edit
Rename
Del
AfterTestMethodCalledSubscriber.php (557 B)
Edit
Rename
Del
AfterTestMethodErrored.php (2.21 KB)
Edit
Rename
Del
AfterTestMethodErroredSubscriber.php (559 B)
Edit
Rename
Del
AfterTestMethodFailed.php (1.99 KB)
Edit
Rename
Del
AfterTestMethodFailedSubscriber.php (557 B)
Edit
Rename
Del
AfterTestMethodFinished.php (2.07 KB)
Edit
Rename
Del
AfterTestMethodFinishedSubscriber.php (561 B)
Edit
Rename
Del
BeforeFirstTestMethodFailed.php (2.21 KB)
Edit
Rename
Del
BeforeTestMethodCalled.php (1.82 KB)
Edit
Rename
Del
BeforeTestMethodCalledSubscriber.php (559 B)
Edit
Rename
Del
BeforeTestMethodErrored.php (2.21 KB)
Edit
Rename
Del
BeforeTestMethodErroredSubscriber.php (561 B)
Edit
Rename
Del
BeforeTestMethodFailed.php (1.99 KB)
Edit
Rename
Del
BeforeTestMethodFailedSubscriber.php (559 B)
Edit
Rename
Del
BeforeTestMethodFinished.php (2.07 KB)
Edit
Rename
Del
BeforeTestMethodFinishedSubscriber.php (563 B)
Edit
Rename
Del
PostConditionCalled.php (1.82 KB)
Edit
Rename
Del
PostConditionCalledSubscriber.php (553 B)
Edit
Rename
Del
PostConditionErrored.php (2.21 KB)
Edit
Rename
Del
PostConditionErroredSubscriber.php (555 B)
Edit
Rename
Del
PostConditionFailed.php (1.99 KB)
Edit
Rename
Del
PostConditionFailedSubscriber.php (553 B)
Edit
Rename
Del
PostConditionFinished.php (2.07 KB)
Edit
Rename
Del
PostConditionFinishedSubscriber.php (557 B)
Edit
Rename
Del
PreConditionCalled.php (1.82 KB)
Edit
Rename
Del
PreConditionCalledSubscriber.php (551 B)
Edit
Rename
Del
PreConditionErrored.php (2.21 KB)
Edit
Rename
Del
PreConditionErroredSubscriber.php (553 B)
Edit
Rename
Del
PreConditionFailed.php (1.99 KB)
Edit
Rename
Del
PreConditionFailedSubscriber.php (551 B)
Edit
Rename
Del
PreConditionFinished.php (2.07 KB)
Edit
Rename
Del
PreConditionFinishedSubscriber.php (555 B)
Edit
Rename
Del
Edit: AfterTestMethodFailed.php
<?php declare(strict_types=1); /* * 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\Event\Test; use const PHP_EOL; use function sprintf; use PHPUnit\Event\Code; use PHPUnit\Event\Code\Throwable; use PHPUnit\Event\Event; use PHPUnit\Event\Telemetry; /** * @immutable * * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit */ final readonly class AfterTestMethodFailed implements Event { private Telemetry\Info $telemetryInfo; private Code\TestMethod $test; private Code\ClassMethod $calledMethod; private Throwable $throwable; /** * @internal This method is not covered by the backward compatibility promise for PHPUnit */ public function __construct(Telemetry\Info $telemetryInfo, Code\TestMethod $test, Code\ClassMethod $calledMethod, Throwable $throwable) { $this->telemetryInfo = $telemetryInfo; $this->test = $test; $this->calledMethod = $calledMethod; $this->throwable = $throwable; } public function telemetryInfo(): Telemetry\Info { return $this->telemetryInfo; } public function test(): Code\TestMethod { return $this->test; } public function calledMethod(): Code\ClassMethod { return $this->calledMethod; } public function throwable(): Throwable { return $this->throwable; } /** * @return non-empty-string */ public function asString(): string { $message = $this->throwable->message(); if ($message !== '') { $message = PHP_EOL . $message; } return sprintf( 'After Test Method Failed (%s::%s)%s', $this->calledMethod->className(), $this->calledMethod->methodName(), $message, ); } }
Simpan