@@ -163,7 +163,7 @@ |
||
163 | 163 | * Require the bootstrap. If the file is specified, but does not exist |
164 | 164 | * then an exception will be raised. |
165 | 165 | * |
166 | - * @param $file |
|
166 | + * @param string $file |
|
167 | 167 | * |
168 | 168 | * @throws \RuntimeException |
169 | 169 | */ |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * Append a testsuite node to the given |
106 | 106 | * root element. |
107 | 107 | * |
108 | - * @param $root |
|
108 | + * @param \DOMElement $root |
|
109 | 109 | * @param TestSuite $suite |
110 | 110 | * |
111 | 111 | * @return \DOMElement |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * Append a testcase node to the given testsuite |
129 | 129 | * node. |
130 | 130 | * |
131 | - * @param $suiteNode |
|
131 | + * @param \DOMElement $suiteNode |
|
132 | 132 | * @param TestCase $case |
133 | 133 | * |
134 | 134 | * @return \DOMElement |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | /** |
156 | 156 | * Append error or failure nodes to the given testcase node. |
157 | 157 | * |
158 | - * @param $caseNode |
|
158 | + * @param \DOMElement $caseNode |
|
159 | 159 | * @param $defects |
160 | - * @param $type |
|
160 | + * @param string $type |
|
161 | 161 | */ |
162 | 162 | protected function appendDefects($caseNode, $defects, $type) |
163 | 163 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * Flatten messages into a single collection |
166 | 166 | * based on an accessor method. |
167 | 167 | * |
168 | - * @param $method |
|
168 | + * @param string $method |
|
169 | 169 | * |
170 | 170 | * @return array |
171 | 171 | */ |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * Reduces a collection of readers down to a single |
184 | 184 | * result based on an accessor. |
185 | 185 | * |
186 | - * @param $method |
|
186 | + * @param string $method |
|
187 | 187 | * |
188 | 188 | * @return mixed |
189 | 189 | */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * Return a value as a float or integer. |
47 | 47 | * |
48 | - * @param $property |
|
48 | + * @param string $property |
|
49 | 49 | * |
50 | 50 | * @return float|int |
51 | 51 | */ |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Return messages for a given type. |
61 | 61 | * |
62 | - * @param $type |
|
62 | + * @param string $type |
|
63 | 63 | * |
64 | 64 | * @return array |
65 | 65 | */ |
@@ -155,8 +155,8 @@ |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @param $filename |
|
159 | - * @param $className |
|
158 | + * @param string $filename |
|
159 | + * @param string $className |
|
160 | 160 | * |
161 | 161 | * @return bool |
162 | 162 | */ |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | * @todo Skipped/Incomplete test tracking available only in functional mode for now |
339 | 339 | * or in regular mode but without group/exclude-group filters. |
340 | 340 | * |
341 | - * @param mixed $options |
|
341 | + * @param Options $options |
|
342 | 342 | * |
343 | 343 | * @return bool |
344 | 344 | */ |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | * for a collection of errors or failures. |
416 | 416 | * |
417 | 417 | * @param array $defects |
418 | - * @param $type |
|
418 | + * @param string $type |
|
419 | 419 | * |
420 | 420 | * @return string |
421 | 421 | */ |
@@ -507,6 +507,9 @@ discard block |
||
507 | 507 | )); |
508 | 508 | } |
509 | 509 | |
510 | + /** |
|
511 | + * @param string $text |
|
512 | + */ |
|
510 | 513 | private function green($text) |
511 | 514 | { |
512 | 515 | if ($this->colors) { |
@@ -518,6 +521,9 @@ discard block |
||
518 | 521 | return $text; |
519 | 522 | } |
520 | 523 | |
524 | + /** |
|
525 | + * @param string $text |
|
526 | + */ |
|
521 | 527 | private function red($text) |
522 | 528 | { |
523 | 529 | if ($this->colors) { |
@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected $excludingFiles = false; |
45 | 45 | |
46 | + /** |
|
47 | + * @param Options $options |
|
48 | + */ |
|
46 | 49 | public function __construct($options = null) |
47 | 50 | { |
48 | 51 | if ($options && !$options instanceof Options) { |
@@ -84,8 +87,8 @@ discard block |
||
84 | 87 | * Loads suites based on a specific path. |
85 | 88 | * A valid path can be a directory or file. |
86 | 89 | * |
87 | - * @param $path |
|
88 | - * @param $pattern |
|
90 | + * @param string $path |
|
91 | + * @param string $pattern |
|
89 | 92 | * |
90 | 93 | * @throws \InvalidArgumentException |
91 | 94 | * |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * Returns the output streams of a subset of workers. |
142 | 142 | * |
143 | 143 | * @param array keys are positions in $this->workers |
144 | - * @param mixed $workers |
|
144 | + * @param Worker[] $workers |
|
145 | 145 | * |
146 | 146 | * @return array |
147 | 147 | */ |
@@ -40,6 +40,9 @@ |
||
40 | 40 | 'time' => 0, |
41 | 41 | ]; |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $logFile |
|
45 | + */ |
|
43 | 46 | public function __construct($logFile) |
44 | 47 | { |
45 | 48 | if (!file_exists($logFile)) { |