function ThrowableBuilder::from
Throws
2 calls to ThrowableBuilder::from()
- AbstractPhpProcess::processChildResult in vendor/
phpunit/ phpunit/ src/ Util/ PHP/ AbstractPhpProcess.php - PhptTestCase::run in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php - Runs a test and collects its result in a TestResult instance.
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ ThrowableBuilder.php, line 28
Class
- ThrowableBuilder
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Event\CodeCode
public static function from(\Throwable $t) : Throwable {
$previous = $t->getPrevious();
if ($previous !== null) {
$previous = self::from($previous);
}
return new Throwable($t::class, $t->getMessage(), ThrowableToStringMapper::map($t), Filter::getFilteredStacktrace($t, false), $previous);
}