Total Complexity | 1 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | abstract class Test |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Instance that keeps track of the score |
||
29 | * for this test. |
||
30 | * |
||
31 | * @var Score |
||
32 | */ |
||
33 | public ?Score $score = null; |
||
34 | |||
35 | /** |
||
36 | * Test constructor. |
||
37 | * |
||
38 | * Please not tests cant overwrite the function. |
||
39 | */ |
||
40 | 32 | final function __construct() |
|
43 | 32 | } |
|
44 | |||
45 | /** |
||
46 | * Tests must implement this method to indicate |
||
47 | * the minimum score this test can reach. |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | abstract public function minScore(); |
||
52 | |||
53 | /** |
||
54 | * Tests must implement this method to indicate |
||
55 | * the maximum score this test can reach. |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | abstract public function maxScore(); |
||
60 | |||
61 | /** |
||
62 | * Tests must implement this method to start |
||
63 | * running their tests. |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | abstract public function run(); |
||
68 | } |
||
69 |