Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | public function getTests($path) |
||
53 | { |
||
54 | if (is_file($path)) { |
||
55 | return [$path]; |
||
56 | } |
||
57 | if (! file_exists($path)) { |
||
58 | throw new \RuntimeException("Cannot load path $path"); |
||
59 | } |
||
60 | $pattern = realpath($path) . '/' . $this->pattern; |
||
61 | |||
62 | return $this->globRecursive($pattern); |
||
63 | } |
||
64 | |||
84 |