1 | <?php |
||
10 | class SuiteLoader implements SuiteLoaderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $pattern; |
||
16 | |||
17 | /** |
||
18 | * @var Context |
||
19 | */ |
||
20 | protected $context; |
||
21 | |||
22 | /** |
||
23 | * @param string $pattern |
||
24 | */ |
||
25 | public function __construct($pattern) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @param $path |
||
35 | */ |
||
36 | public function load($path) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * |
||
48 | * @param $path |
||
49 | * @return array |
||
50 | * @throws \RuntimeException |
||
51 | */ |
||
52 | public function getTests($path) |
||
64 | |||
65 | /** |
||
66 | * Simple recursive glob |
||
67 | * |
||
68 | * @link http://php.net/manual/en/function.glob.php#106595 |
||
69 | * @param $pattern |
||
70 | * @param int $flags |
||
71 | * @return array |
||
72 | */ |
||
73 | protected function globRecursive($pattern, $flags = 0) |
||
83 | } |
||
84 |