You are here

public function TestDiscovery::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()

Constructs a new test discovery.

Parameters

string $root: The app root.

$class_loader: The class loader. Normally Composer's ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader.

File

core/lib/Drupal/Core/Test/TestDiscovery.php, line 63

Class

TestDiscovery
Discovers available tests.

Namespace

Drupal\Core\Test

Code

public function __construct($root, $class_loader) {
  $this->root = $root;
  $this->classLoader = $class_loader;
}