You are here

public function PhpUnitTestRunner::__construct in Drupal 8

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

Constructs a test runner.

Parameters

string $app_root: Path to the application root.

string $working_directory: Path to the working directory. JUnit log files will be stored in this directory.

File

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

Class

PhpUnitTestRunner
Run PHPUnit-based tests.

Namespace

Drupal\Core\Test

Code

public function __construct($app_root, $working_directory) {
  $this->appRoot = $app_root;
  $this->workingDirectory = $working_directory;
}