public function TestDiscovery::__construct in Drupal 8
Same name in this branch
- 8 core/modules/simpletest/src/TestDiscovery.php \Drupal\simpletest\TestDiscovery::__construct()
- 8 core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()
Same name and namespace in other branches
- 9 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.
2 calls to TestDiscovery::__construct()
- TestDiscovery::__construct in core/
modules/ simpletest/ src/ TestDiscovery.php - Constructs a new test discovery.
- TestDiscovery::__construct in core/
modules/ simpletest/ src/ TestDiscovery.php - Constructs a new test discovery.
1 method overrides TestDiscovery::__construct()
- TestDiscovery::__construct in core/
modules/ simpletest/ src/ TestDiscovery.php - Constructs a new test discovery.
File
- core/
lib/ Drupal/ Core/ Test/ TestDiscovery.php, line 62
Class
- TestDiscovery
- Discovers available tests.
Namespace
Drupal\Core\TestCode
public function __construct($root, $class_loader) {
$this->root = $root;
$this->classLoader = $class_loader;
}