public function __construct(TestLoaderInterface $testLoader, array $settings = [], $contextName = 'testing') { $this->testLoader = $testLoader; $this->settings = $settings; if (array_key_exists('directory', $settings)) { $this->projectDirectory = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $settings['directory']); } parent::__construct($contextName); }
public function __construct($projectDirectory) { $this->projectDirectory = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $projectDirectory); parent::__construct('development'); }