1 | <?php |
||
9 | abstract class BaseRunner |
||
10 | { |
||
11 | const PHPUNIT_FATAL_ERROR = 255; |
||
12 | |||
13 | /** |
||
14 | * @var Options |
||
15 | */ |
||
16 | protected $options; |
||
17 | |||
18 | /** |
||
19 | * @var \ParaTest\Logging\LogInterpreter |
||
20 | */ |
||
21 | protected $interpreter; |
||
22 | |||
23 | /** |
||
24 | * @var ResultPrinter |
||
25 | */ |
||
26 | protected $printer; |
||
27 | |||
28 | /** |
||
29 | * A collection of pending ExecutableTest objects that have |
||
30 | * yet to run |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $pending = array(); |
||
35 | |||
36 | /** |
||
37 | * A collection of ExecutableTest objects that have processes |
||
38 | * currently running |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $running = array(); |
||
43 | |||
44 | /** |
||
45 | * A tallied exit code that returns the highest exit |
||
46 | * code returned out of the entire collection of tests |
||
47 | * |
||
48 | * @var int |
||
49 | */ |
||
50 | protected $exitcode = -1; |
||
51 | |||
52 | /** |
||
53 | * CoverageMerger to hold track of the accumulated coverage |
||
54 | * |
||
55 | * @var CoverageMerger |
||
56 | */ |
||
57 | protected $coverage = null; |
||
58 | |||
59 | /** |
||
60 | * Indicates whether the starting messages were printed or not. |
||
61 | * |
||
62 | * @var bool |
||
63 | */ |
||
64 | protected $starting_messages_printed = false; |
||
65 | |||
66 | |||
67 | 8 | public function __construct($opts = array()) |
|
73 | |||
74 | 2 | public function run() |
|
86 | |||
87 | /** |
||
88 | * Ensures a valid configuration was supplied. If not |
||
89 | * causes ParaTest to print the error message and exit immediately |
||
90 | * with an exit code of 1 |
||
91 | */ |
||
92 | 2 | protected function verifyConfiguration() |
|
99 | |||
100 | /** |
||
101 | * Builds the collection of pending ExecutableTest objects |
||
102 | * to run. If functional mode is enabled $this->pending will |
||
103 | * contain a collection of TestMethod objects instead of Suite |
||
104 | * objects |
||
105 | */ |
||
106 | 2 | protected function load() |
|
116 | |||
117 | /** |
||
118 | * Returns the highest exit code encountered |
||
119 | * throughout the course of test execution |
||
120 | * |
||
121 | * @return int |
||
122 | */ |
||
123 | 1 | public function getExitCode() |
|
127 | |||
128 | /** |
||
129 | * Write output to JUnit format if requested |
||
130 | */ |
||
131 | protected function log() |
||
140 | |||
141 | /** |
||
142 | * Write coverage to file if requested |
||
143 | */ |
||
144 | 2 | protected function logCoverage() |
|
164 | |||
165 | 2 | protected function initCoverage() |
|
173 | |||
174 | /** |
||
175 | * @return bool |
||
176 | */ |
||
177 | 2 | protected function hasCoverage() |
|
181 | |||
182 | /** |
||
183 | * @return CoverageMerger |
||
184 | */ |
||
185 | 2 | protected function getCoverage() |
|
189 | |||
190 | } |
||
191 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.