diff --git a/core/lib/Drupal/Core/Test/JUnitConverter.php b/core/lib/Drupal/Core/Test/JUnitConverter.php index bfc26f0987..f539a3ffbe 100644 --- a/core/lib/Drupal/Core/Test/JUnitConverter.php +++ b/core/lib/Drupal/Core/Test/JUnitConverter.php @@ -27,7 +27,7 @@ public static function xmlToRows($test_id, $phpunit_xml_file) { return; } $records = []; - $testcases = static::findTestcases(new SimpleXMLElement($contents)); + $testcases = static::findTestcases(new \SimpleXMLElement($contents)); foreach ($testcases as $testcase) { $records[] = static::testcaseToSimpletestRow($test_id, $testcase); } diff --git a/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php b/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php index 73264dbd69..7dda127519 100644 --- a/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php +++ b/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php @@ -3,7 +3,6 @@ namespace Drupal\Core\Test; use Drupal\Core\Database\Database; -use Drupal\Core\Test\TestStatus; use Drupal\Tests\Listeners\SimpletestUiPrinter; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Process\PhpExecutableFinder; diff --git a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php index afb91fc8b0..4aaa9cf00b 100644 --- a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php +++ b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php @@ -5,7 +5,6 @@ use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Core\File\FileSystemInterface; use Drupal\Core\Test\PhpUnitTestRunner; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * Tests simpletest_run_phpunit_tests() handles PHPunit fatals correctly.