| Total Complexity | 6 | 
| Total Lines | 42 | 
| Duplicated Lines | 0 % | 
| Changes | 27 | ||
| Bugs | 5 | Features | 7 | 
| 1 | <?php | ||
| 15 | final class Tester { | ||
| 16 | use \Nette\SmartObject; | ||
| 17 | |||
| 18 | /** @var string[] */ | ||
| 19 | private array $suits; | ||
| 20 | /** @var callable[] */ | ||
| 21 | public array $onExecute = [ | ||
| 22 | Environment::class . "::setup", | ||
| 23 | Environment::class . "::printInfo", | ||
| 24 | ]; | ||
| 25 | public ITestSuitFactory $testSuitFactory; | ||
| 26 | |||
| 27 |   public function __construct(string $folder) { | ||
| 28 | $this->suits = (new TestSuitsFinder())->getSuits($folder); | ||
| 29 |     $this->testSuitFactory = new class implements ITestSuitFactory { | ||
| 30 |       public function create(string $className): TestCase { | ||
| 31 | return new $className(); | ||
| 32 | } | ||
| 33 | }; | ||
| 34 | } | ||
| 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 { | ||
| 57 | } | ||
| 58 | } | ||
| 59 | ?> |