final class RunnerVersion in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion
- 10 core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion
Helper class to determine information about running PHPUnit version.
This class contains static methods only and is not meant to be instantiated.
Hierarchy
- class \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion
Expanded class hierarchy of RunnerVersion
8 files declare their use of RunnerVersion
- AfterSymfonyListener.php in core/
tests/ Drupal/ Tests/ Listeners/ AfterSymfonyListener.php - Listens to PHPUnit test runs.
- DrupalListener.php in core/
tests/ Drupal/ Tests/ Listeners/ DrupalListener.php - Listens to PHPUnit test runs.
- FileFieldTestBase.php in core/
modules/ file/ tests/ src/ Functional/ FileFieldTestBase.php - FileFieldValidateTest.php in core/
modules/ file/ tests/ src/ Functional/ FileFieldValidateTest.php - HtmlOutputPrinter.php in core/
tests/ Drupal/ Tests/ Listeners/ HtmlOutputPrinter.php - Defines a class for providing html output results for functional tests.
File
- core/
tests/ Drupal/ TestTools/ PhpUnitCompatibility/ RunnerVersion.php, line 12
Namespace
Drupal\TestTools\PhpUnitCompatibilityView source
final class RunnerVersion {
/**
* This class should not be instantiated.
*/
private function __construct() {
}
/**
* Returns the major version of the PHPUnit runner being used.
*
* @return int
* The major version of the PHPUnit runner being used.
*/
public static function getMajor() {
return (int) explode('.', Version::id())[0];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RunnerVersion:: |
public static | function | Returns the major version of the PHPUnit runner being used. | |
RunnerVersion:: |
private | function | This class should not be instantiated. |