You are here

public function TestDiscovery::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/TestDiscovery.php \Drupal\simpletest\TestDiscovery::__construct()

Constructs a new test discovery.

Parameters

$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.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: (optional) Backend for caching discovery results.

File

core/modules/simpletest/src/TestDiscovery.php, line 62
Contains \Drupal\simpletest\TestDiscovery.

Class

TestDiscovery
Discovers available tests.

Namespace

Drupal\simpletest

Code

public function __construct($class_loader, CacheBackendInterface $cache_backend = NULL) {
  $this->classLoader = $class_loader;
  $this->cacheBackend = $cache_backend;
}