| Conditions | 5 |
| Paths | 6 |
| Total Lines | 23 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 44 | public function execute(): bool { |
||
| 45 | $this->onExecute(); |
||
| 46 | $failed = false; |
||
| 47 | foreach($this->suits as $suit) { |
||
| 48 | if(!$suit->run()) { |
||
| 49 | $failed = true; |
||
| 50 | } |
||
| 51 | } |
||
| 52 | Environment::printLine(""); |
||
| 53 | Environment::printSkipped(); |
||
| 54 | if($failed) { |
||
| 55 | Environment::printLine("Failed"); |
||
| 56 | Environment::printLine(""); |
||
| 57 | $files = Finder::findFiles("*.errors")->in(\getTestsDirectory()); |
||
| 58 | /** @var \SplFileInfo $file */ |
||
| 59 | foreach($files as $name => $file) { |
||
| 60 | Environment::printLine("--- " . substr($file->getBasename(), 0, -7)); |
||
| 61 | echo file_get_contents($name); |
||
| 62 | } |
||
| 63 | } else { |
||
| 64 | Environment::printLine("OK"); |
||
| 65 | } |
||
| 66 | return $failed; |
||
| 67 | } |
||
| 69 | ?> |