1 | <?php |
||
21 | abstract class BaseCase |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $config; |
||
27 | |||
28 | /** |
||
29 | * @var RequiresConfig |
||
30 | */ |
||
31 | protected $factory; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $configId; |
||
37 | |||
38 | /** |
||
39 | * Returns benchmark factory class |
||
40 | * |
||
41 | * @return RequiresConfig |
||
42 | */ |
||
43 | abstract protected function getFactoryClass(): RequiresConfig; |
||
44 | |||
45 | /** |
||
46 | * Setup config and class |
||
47 | */ |
||
48 | public function classSetUp(): void |
||
54 | |||
55 | /** |
||
56 | * Returns test config |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | private function getTestConfig(): array |
||
71 | } |
||
72 |