1 | <?php |
||
14 | abstract class BaseRunner |
||
15 | { |
||
16 | const PHPUNIT_FATAL_ERROR = 255; |
||
17 | |||
18 | /** |
||
19 | * @var Options |
||
20 | */ |
||
21 | protected $options; |
||
22 | |||
23 | /** |
||
24 | * @var \ParaTest\Logging\LogInterpreter |
||
25 | */ |
||
26 | protected $interpreter; |
||
27 | |||
28 | /** |
||
29 | * @var ResultPrinter |
||
30 | */ |
||
31 | protected $printer; |
||
32 | |||
33 | /** |
||
34 | * A collection of pending ExecutableTest objects that have |
||
35 | * yet to run |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $pending = array(); |
||
40 | |||
41 | /** |
||
42 | * A collection of ExecutableTest objects that have processes |
||
43 | * currently running |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $running = array(); |
||
48 | |||
49 | /** |
||
50 | * A tallied exit code that returns the highest exit |
||
51 | * code returned out of the entire collection of tests |
||
52 | * |
||
53 | * @var int |
||
54 | */ |
||
55 | protected $exitcode = -1; |
||
56 | |||
57 | /** |
||
58 | * CoverageMerger to hold track of the accumulated coverage |
||
59 | * |
||
60 | * @var CoverageMerger |
||
61 | */ |
||
62 | protected $coverage = null; |
||
63 | |||
64 | |||
65 | 8 | public function __construct($opts = array()) |
|
71 | |||
72 | 2 | public function run() |
|
79 | |||
80 | /** |
||
81 | * Ensures a valid configuration was supplied. If not |
||
82 | * causes ParaTest to print the error message and exit immediately |
||
83 | * with an exit code of 1 |
||
84 | */ |
||
85 | 2 | protected function verifyConfiguration() |
|
92 | |||
93 | /** |
||
94 | * Builds the collection of pending ExecutableTest objects |
||
95 | * to run. If functional mode is enabled $this->pending will |
||
96 | * contain a collection of TestMethod objects instead of Suite |
||
97 | * objects |
||
98 | */ |
||
99 | 2 | protected function load() |
|
109 | |||
110 | /** |
||
111 | * Returns the highest exit code encountered |
||
112 | * throughout the course of test execution |
||
113 | * |
||
114 | * @return int |
||
115 | */ |
||
116 | 1 | public function getExitCode() |
|
120 | |||
121 | /** |
||
122 | * Write output to JUnit format if requested |
||
123 | */ |
||
124 | 2 | protected function log() |
|
133 | |||
134 | /** |
||
135 | * Write coverage to file if requested |
||
136 | */ |
||
137 | 2 | protected function logCoverage() |
|
157 | |||
158 | 2 | protected function initCoverage() |
|
166 | |||
167 | /** |
||
168 | * @return bool |
||
169 | */ |
||
170 | 2 | protected function hasCoverage() |
|
174 | |||
175 | /** |
||
176 | * @return CoverageMerger |
||
177 | */ |
||
178 | 2 | protected function getCoverage() |
|
182 | |||
183 | } |
||
184 |
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.