Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Root.php
Go to the documentation of this file.
1 <?php
8 
11 
12 class Root extends Module
13 {
14  const ROOT_SUITE_DIR = "tests/_suite";
15 
24  public function get($filename, $scope)
25  {
26  // first pick up the root level test suite dir
27  $paths = glob(
28  TESTS_BP . DIRECTORY_SEPARATOR . self::ROOT_SUITE_DIR
29  . DIRECTORY_SEPARATOR . $filename
30  );
31 
32  // then merge this path into the module based paths
33  // Since we are sharing this code with Module based resolution we will unncessarily glob against modules in the
34  // dev/tests dir tree, however as we plan to migrate to app/code this will be a temporary unneeded check.
35  $paths = array_merge($paths, $this->getPaths($filename, $scope));
36 
37  // create and return the iterator for these file paths
38  $iterator = new File($paths);
39  return $iterator;
40  }
41 }
$paths
Definition: _bootstrap.php:83