class TestSize
Same name in this branch
- 11.1.x vendor/phpunit/php-code-coverage/src/TestSize/TestSize.php \SebastianBergmann\CodeCoverage\Test\TestSize\TestSize
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
@psalm-immutable
Hierarchy
- class \PHPUnit\Framework\TestSize\TestSize
Expanded class hierarchy of TestSize
4 files declare their use of TestSize
- DataProviderTestSuite.php in vendor/
phpunit/ phpunit/ src/ Framework/ DataProviderTestSuite.php - Groups.php in vendor/
phpunit/ phpunit/ src/ Metadata/ Api/ Groups.php - PassedTests.php in vendor/
phpunit/ phpunit/ src/ Runner/ TestResult/ PassedTests.php - TestCase.php in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestSize/ TestSize.php, line 19
Namespace
PHPUnit\Framework\TestSizeView source
abstract class TestSize {
public static function unknown() : self {
return new Unknown();
}
public static function small() : self {
return new Small();
}
public static function medium() : self {
return new Medium();
}
public static function large() : self {
return new Large();
}
/**
* @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 Small $this
*/
public function isSmall() : bool {
return false;
}
/**
* @psalm-assert-if-true Medium $this
*/
public function isMedium() : bool {
return false;
}
/**
* @psalm-assert-if-true Large $this
*/
public function isLarge() : bool {
return false;
}
public abstract function asString() : string;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TestSize::asString | abstract public | function | 4 | |
TestSize::isKnown | public | function | @psalm-assert-if-true Known $this | 1 |
TestSize::isLarge | public | function | @psalm-assert-if-true Large $this | 1 |
TestSize::isMedium | public | function | @psalm-assert-if-true Medium $this | 1 |
TestSize::isSmall | public | function | @psalm-assert-if-true Small $this | 1 |
TestSize::isUnknown | public | function | @psalm-assert-if-true Unknown $this | 1 |
TestSize::large | public static | function | ||
TestSize::medium | public static | function | ||
TestSize::small | public static | function | ||
TestSize::unknown | public static | function |