You are here

public static function PhpUnitTestRunner::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::create()
  2. 9 core/lib/Drupal/Core/Test/PhpUnitTestRunner.php \Drupal\Core\Test\PhpUnitTestRunner::create()

File

core/lib/Drupal/Core/Test/PhpUnitTestRunner.php, line 44

Class

PhpUnitTestRunner
Run PHPUnit-based tests.

Namespace

Drupal\Core\Test

Code

public static function create(ContainerInterface $container) {
  return new static((string) $container
    ->getParameter('app.root'), (string) $container
    ->get('file_system')
    ->realpath('public://simpletest'));
}