class TestStatus
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/TestStatus/TestStatus.php \PHPUnit\Framework\TestStatus\TestStatus
- 11.1.x core/lib/Drupal/Core/Test/TestStatus.php \Drupal\Core\Test\TestStatus
@psalm-immutable
Hierarchy
- class \SebastianBergmann\CodeCoverage\Test\TestStatus\TestStatus
Expanded class hierarchy of TestStatus
3 files declare their use of TestStatus
- CodeCoverage.php in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage.php - CodeCoverage.php in vendor/
phpunit/ phpunit/ src/ Runner/ CodeCoverage.php - PhptTestCase.php in vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ TestStatus/ TestStatus.php, line 15
Namespace
SebastianBergmann\CodeCoverage\Test\TestStatusView source
abstract class TestStatus {
public static function unknown() : self {
return new Unknown();
}
public static function success() : self {
return new Success();
}
public static function failure() : self {
return new Failure();
}
/**
* @psalm-assert-if-true Known $this
*/
public function isKnown() : bool {
return false;
}
/**
* @psalm-assert-if-true Unknown $this
*/
public function isUnknown() : bool {
return false;
}
/**
* @psalm-assert-if-true Success $this
*/
public function isSuccess() : bool {
return false;
}
/**
* @psalm-assert-if-true Failure $this
*/
public function isFailure() : bool {
return false;
}
public abstract function asString() : string;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TestStatus::asString | abstract public | function | 3 | |
TestStatus::failure | public static | function | ||
TestStatus::isFailure | public | function | @psalm-assert-if-true Failure $this | 1 |
TestStatus::isKnown | public | function | @psalm-assert-if-true Known $this | 1 |
TestStatus::isSuccess | public | function | @psalm-assert-if-true Success $this | 1 |
TestStatus::isUnknown | public | function | @psalm-assert-if-true Unknown $this | 1 |
TestStatus::success | public static | function | ||
TestStatus::unknown | public static | function |