Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TestManifestFactory.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
17  private function __construct()
18  {
19  // private constructor
20  }
21 
30  public static function makeManifest($runConfig, $suiteConfiguration, $testPath = TestGenerator::DEFAULT_DIR)
31  {
32  $testDirFullPath = TESTS_MODULE_PATH
33  . DIRECTORY_SEPARATOR
35  . DIRECTORY_SEPARATOR
36  . $testPath;
37 
38  switch ($runConfig) {
39  case 'singleRun':
40  return new SingleRunTestManifest($suiteConfiguration, $testDirFullPath);
41 
42  case 'parallel':
43  return new ParallelTestManifest($suiteConfiguration, $testDirFullPath);
44 
45  default:
46  return new DefaultTestManifest($suiteConfiguration, $testDirFullPath);
47  }
48  }
49 }
static makeManifest($runConfig, $suiteConfiguration, $testPath=TestGenerator::DEFAULT_DIR)