Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public function __construct($projectDirectory)
 {
     $this->projectDirectory = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $projectDirectory);
     parent::__construct('development');
 }