public static function RunnerVersion::getMajor in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion::getMajor()
- 9 core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion::getMajor()
Returns the major version of the PHPUnit runner being used.
Return value
int The major version of the PHPUnit runner being used.
1 call to RunnerVersion::getMajor()
- PhpUnitCompatibilityTrait.php in core/
tests/ Drupal/ Tests/ PhpUnitCompatibilityTrait.php
File
- core/
tests/ Drupal/ TestTools/ PhpUnitCompatibility/ RunnerVersion.php, line 26
Class
- RunnerVersion
- Helper class to determine information about running PHPUnit version.
Namespace
Drupal\TestTools\PhpUnitCompatibilityCode
public static function getMajor() {
return (int) explode('.', Version::id())[0];
}