1 | <?php |
||
10 | class TestFinder extends Finder |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $testsDirectory; |
||
16 | |||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | private $changed = false; |
||
21 | |||
22 | 5 | public function __construct(string $testsDirectory) |
|
34 | |||
35 | public function changed(bool $changed) : self |
||
41 | |||
42 | 3 | public function inGroup(string $group) : self |
|
46 | |||
47 | 3 | public function inGroups(array $groups) : self |
|
55 | |||
56 | 1 | public function notInGroup(string $group) : self |
|
60 | |||
61 | 1 | public function notInGroups(array $groups) : self |
|
69 | |||
70 | public function findTestFilesByFilter(string $filter) : array |
||
76 | |||
77 | 3 | public function findTestFilesInGroups(array $groups) : array |
|
83 | |||
84 | 1 | public function findTestFilesExcludingGroups(array $excludeGroups) : array |
|
90 | |||
91 | 1 | public function findAllTestFiles() : array |
|
95 | |||
96 | public function findChangedTestFiles() : array |
||
102 | |||
103 | public function getFiles() : array |
||
111 | |||
112 | private function buildFilesArrayFromFinder(Finder $finder) : array |
||
118 | |||
119 | private function buildFilesArrayFromFindCommand(string $command) : array |
||
125 | } |
||
126 |