Conditions | 6 |
Paths | 8 |
Total Lines | 24 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 8 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
35 | |||
36 | /** |
||
37 | * @return string[] |
||
38 | */ |
||
39 | protected function getSuits(): array { |
||
40 | return $this->suits; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Execute all tests |
||
45 | */ |
||
46 | public function execute(): void { |
||
47 | $this->onExecute(); |
||
48 | $failed = false; |
||
49 | foreach($this->suits as $suit) { |
||
50 | $suit = $this->testSuitFactory->create($suit[0]); |
||
51 | if(!$suit->run()) { |
||
52 | $failed = true; |
||
53 | } |
||
54 | } |
||
55 | Environment::printResults(); |
||
56 | exit((int) $failed); |
||
57 | } |
||
58 | } |
||
59 | ?> |