public static function RunnerVersion::getMajor in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/TestTools/PhpUnitCompatibility/RunnerVersion.php \Drupal\TestTools\PhpUnitCompatibility\RunnerVersion::getMajor()
- 10 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.
8 calls to RunnerVersion::getMajor()
- 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::testAssertFileExistsDeprecation in core/
modules/ file/ tests/ src/ Functional/ FileFieldValidateTest.php - Tests deprecation of the assertFileExists and assertFileNotExists methods.
- 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 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];
}