1 | <?php |
||
5 | abstract class TestSuiteFactory extends TestFactory |
||
6 | { |
||
7 | /** |
||
8 | * @var array|null |
||
9 | */ |
||
10 | private $tests = null; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $testResults = array(); |
||
16 | |||
17 | /** |
||
18 | * @param TestConfiguration|null $configuration |
||
19 | * @param TestData|null $testData |
||
20 | */ |
||
21 | public function __construct($configuration = null, $testData = null) |
||
30 | |||
31 | |||
32 | /** |
||
33 | * @param TestData|null $testData |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | protected function initialize($testData = null) |
||
41 | |||
42 | /** |
||
43 | * @param TestFactory $test |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function addTest($test) |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getTests() |
||
61 | |||
62 | /** |
||
63 | * @param TestResult $testResult |
||
64 | * |
||
65 | * @return void |
||
66 | */ |
||
67 | protected function addTestResult($testResult) |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | public function getTestResults() |
||
81 | |||
82 | /** |
||
83 | * @return void |
||
84 | */ |
||
85 | protected function calculateState() |
||
97 | |||
98 | /** |
||
99 | * @return void |
||
100 | */ |
||
101 | abstract protected function invokeTestSuite(); |
||
102 | } |
||
103 |