function DrupalStandardsListenerTrait::isTestSuite
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php \Drupal\Tests\Listeners\DrupalStandardsListenerTrait::isTestSuite()
Determine if a test object is a test suite regardless of PHPUnit version.
Parameters
\PHPUnit\Framework\Test $test: The test object to test if it is a test suite.
Return value
bool TRUE if it is a test suite, FALSE if not.
1 call to DrupalStandardsListenerTrait::isTestSuite()
- DrupalStandardsListenerTrait::doEndTest in core/
tests/ Drupal/ Tests/ Listeners/ DrupalStandardsListenerTrait.php - Reacts to the end of a test.
File
-
core/
tests/ Drupal/ Tests/ Listeners/ DrupalStandardsListenerTrait.php, line 225
Class
- DrupalStandardsListenerTrait
- Listens for PHPUnit tests and fails those with invalid coverage annotations.
Namespace
Drupal\Tests\ListenersCode
private function isTestSuite($test) {
if (class_exists('PHPUnit\\Framework\\TestSuite') && $test instanceof TestSuite) {
return TRUE;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.