@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | 'errors' => 0, |
37 | 37 | 'time' => 0); |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $logFile |
|
41 | + */ |
|
39 | 42 | public function __construct($logFile) |
40 | 43 | { |
41 | 44 | if (!file_exists($logFile)) { |
@@ -77,7 +80,7 @@ discard block |
||
77 | 80 | * Checks whether the xml log has |
78 | 81 | * test suite results |
79 | 82 | * |
80 | - * @return array |
|
83 | + * @return boolean |
|
81 | 84 | */ |
82 | 85 | public function hasResults() |
83 | 86 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * Append a testsuite node to the given |
103 | 103 | * root element |
104 | 104 | * |
105 | - * @param $root |
|
105 | + * @param \DOMElement $root |
|
106 | 106 | * @param TestSuite $suite |
107 | 107 | * @return \DOMElement |
108 | 108 | */ |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * Append a testcase node to the given testsuite |
124 | 124 | * node |
125 | 125 | * |
126 | - * @param $suiteNode |
|
126 | + * @param \DOMElement $suiteNode |
|
127 | 127 | * @param TestCase $case |
128 | 128 | * @return \DOMElement |
129 | 129 | */ |
@@ -145,9 +145,9 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * Append error or failure nodes to the given testcase node |
147 | 147 | * |
148 | - * @param $caseNode |
|
148 | + * @param \DOMElement $caseNode |
|
149 | 149 | * @param $defects |
150 | - * @param $type |
|
150 | + * @param string $type |
|
151 | 151 | */ |
152 | 152 | protected function appendDefects($caseNode, $defects, $type) |
153 | 153 | { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * Flatten messages into a single collection |
156 | 156 | * based on an accessor method |
157 | 157 | * |
158 | - * @param $method |
|
158 | + * @param string $method |
|
159 | 159 | * @return array |
160 | 160 | */ |
161 | 161 | private function mergeMessages($method) |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * Reduces a collection of readers down to a single |
172 | 172 | * result based on an accessor |
173 | 173 | * |
174 | - * @param $method |
|
174 | + * @param string $method |
|
175 | 175 | * @return mixed |
176 | 176 | */ |
177 | 177 | private function accumulate($method) |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Return a value as a float or integer |
45 | 45 | * |
46 | - * @param $property |
|
46 | + * @param string $property |
|
47 | 47 | * @return float|int |
48 | 48 | */ |
49 | 49 | protected function getNumericValue($property) |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Return messages for a given type |
58 | 58 | * |
59 | - * @param $type |
|
59 | + * @param string $type |
|
60 | 60 | * @return array |
61 | 61 | */ |
62 | 62 | protected function getMessages($type) |
@@ -260,7 +260,7 @@ |
||
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
263 | - * @param $file |
|
263 | + * @param string $file |
|
264 | 264 | * @return bool |
265 | 265 | */ |
266 | 266 | private function isFile($file) |
@@ -345,6 +345,7 @@ discard block |
||
345 | 345 | * @todo Skipped/Incomplete test tracking available only in functional mode for now |
346 | 346 | * or in regular mode but without group/exclude-group filters. |
347 | 347 | * |
348 | + * @param Options $options |
|
348 | 349 | * @return boolean |
349 | 350 | */ |
350 | 351 | protected function isSkippedIncompleTestCanBeTracked($options) |
@@ -420,7 +421,7 @@ discard block |
||
420 | 421 | * for a collection of errors or failures |
421 | 422 | * |
422 | 423 | * @param array $defects |
423 | - * @param $type |
|
424 | + * @param string $type |
|
424 | 425 | * @return string |
425 | 426 | */ |
426 | 427 | protected function getDefects(array $defects, $type) |
@@ -512,6 +513,9 @@ discard block |
||
512 | 513 | } |
513 | 514 | } |
514 | 515 | |
516 | + /** |
|
517 | + * @param string $text |
|
518 | + */ |
|
515 | 519 | private function green($text) |
516 | 520 | { |
517 | 521 | if ($this->colors) { |
@@ -522,6 +526,9 @@ discard block |
||
522 | 526 | return $text; |
523 | 527 | } |
524 | 528 | |
529 | + /** |
|
530 | + * @param string $text |
|
531 | + */ |
|
525 | 532 | private function red($text) |
526 | 533 | { |
527 | 534 | if ($this->colors) { |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | private static $dotPattern = '/([.]+)$/'; |
42 | 42 | |
43 | + /** |
|
44 | + * @param Options $options |
|
45 | + */ |
|
43 | 46 | public function __construct($options = null) |
44 | 47 | { |
45 | 48 | if ($options && !$options instanceof Options) { |
@@ -201,6 +204,9 @@ discard block |
||
201 | 204 | } |
202 | 205 | } |
203 | 206 | |
207 | + /** |
|
208 | + * @param ParsedClass $class |
|
209 | + */ |
|
204 | 210 | private function executableTests($path, $class) |
205 | 211 | { |
206 | 212 | $executableTests = array(); |
@@ -242,6 +248,10 @@ discard block |
||
242 | 248 | return $batches; |
243 | 249 | } |
244 | 250 | |
251 | + /** |
|
252 | + * @param string $dependsOn |
|
253 | + * @param string[] $tests |
|
254 | + */ |
|
245 | 255 | private function addDependentTestsToBatchSet(&$batches, $dependsOn, $tests) |
246 | 256 | { |
247 | 257 | foreach ($batches as $key => $batch) { |
@@ -254,6 +264,9 @@ discard block |
||
254 | 264 | } |
255 | 265 | } |
256 | 266 | |
267 | + /** |
|
268 | + * @param string[] $tests |
|
269 | + */ |
|
257 | 270 | private function addTestsToBatchSet(&$batches, $tests, $maxBatchSize) |
258 | 271 | { |
259 | 272 | foreach ($tests as $test) { |
@@ -344,6 +357,10 @@ discard block |
||
344 | 357 | return $result; |
345 | 358 | } |
346 | 359 | |
360 | + /** |
|
361 | + * @param string $className |
|
362 | + * @param string $name |
|
363 | + */ |
|
347 | 364 | private function testMatchOptions($className, $name, $group) |
348 | 365 | { |
349 | 366 | $result = $this->testMatchGroupOptions($group) |
@@ -352,6 +369,9 @@ discard block |
||
352 | 369 | return $result; |
353 | 370 | } |
354 | 371 | |
372 | + /** |
|
373 | + * @param ParsedObject $method |
|
374 | + */ |
|
355 | 375 | private function methodDataProvider($method) |
356 | 376 | { |
357 | 377 | if (preg_match("/@\bdataProvider\b \b(.*)\b/", $method->getDocBlock(), $matches)) { |
@@ -368,6 +388,9 @@ discard block |
||
368 | 388 | return null; |
369 | 389 | } |
370 | 390 | |
391 | + /** |
|
392 | + * @param ParsedObject $method |
|
393 | + */ |
|
371 | 394 | private function methodGroups($method) |
372 | 395 | { |
373 | 396 | if (preg_match_all("/@\bgroup\b \b(.*)\b/", $method->getDocBlock(), $matches)) { |
@@ -137,6 +137,7 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * Returns the output streams of a subset of workers. |
139 | 139 | * @param array keys are positions in $this->workers |
140 | + * @param Worker[] $workers |
|
140 | 141 | * @return array |
141 | 142 | */ |
142 | 143 | private function streamsOf($workers) |
@@ -173,6 +174,9 @@ discard block |
||
173 | 174 | } |
174 | 175 | } |
175 | 176 | |
177 | + /** |
|
178 | + * @param Worker $worker |
|
179 | + */ |
|
176 | 180 | private function flushWorker($worker) |
177 | 181 | { |
178 | 182 | if ($this->hasCoverage()) { |
@@ -260,7 +260,7 @@ |
||
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
263 | - * @param $file |
|
263 | + * @param string $file |
|
264 | 264 | * @return bool |
265 | 265 | */ |
266 | 266 | private function isFile($file) |