function TestStatus::from
1 call to TestStatus::from()
- DefaultResultCache::load in vendor/
phpunit/ phpunit/ src/ Runner/ ResultCache/ DefaultResultCache.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestStatus/ TestStatus.php, line 23
Class
- TestStatus
- @psalm-immutable
Namespace
PHPUnit\Framework\TestStatusCode
public static function from(int $status) : self {
return match ($status) { 0 => self::success(),
1 => self::skipped(),
2 => self::incomplete(),
3 => self::notice(),
4 => self::deprecation(),
5 => self::risky(),
6 => self::warning(),
7 => self::failure(),
8 => self::error(),
default => self::unknown(),
};
}