function simpletest_phpunit_find_testcases in Drupal 8
Finds all test cases recursively from a test suite list.
Parameters
\SimpleXMLElement $element: The PHPUnit xml to search for test cases.
\SimpleXMLElement $parent: (Optional) The parent of the current element. Defaults to NULL.
Return value
array A list of all test cases.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::findTestCases() instead.
See also
https://www.drupal.org/node/2948547
1 call to simpletest_phpunit_find_testcases()
- SimpletestDeprecationTest::testDeprecatedPhpUnitFunctions in core/
modules/ simpletest/ tests/ src/ Kernel/ SimpletestDeprecationTest.php - @expectedDeprecation simpletest_phpunit_xml_filepath is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead. See https://www.drupal.org/node/2948547 @expectedDeprecation…
File
- core/
modules/ simpletest/ simpletest.module, line 717 - Provides testing functionality.
Code
function simpletest_phpunit_find_testcases(\SimpleXMLElement $element, \SimpleXMLElement $parent = NULL) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Test\\JUnitConverter::findTestCases() instead. See https://www.drupal.org/node/2948547', E_USER_DEPRECATED);
return JUnitConverter::findTestCases($element, $parent);
}