@@ -146,8 +146,8 @@ |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @param $filename |
|
| 150 | - * @param $className |
|
| 149 | + * @param string $filename |
|
| 150 | + * @param string $className |
|
| 151 | 151 | * @return bool |
| 152 | 152 | */ |
| 153 | 153 | private function classNameMatchesFileName($filename, $className) |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | 'skipped' => 0, |
| 38 | 38 | 'time' => 0]; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $logFile |
|
| 42 | + */ |
|
| 40 | 43 | public function __construct($logFile) |
| 41 | 44 | { |
| 42 | 45 | if (!file_exists($logFile)) { |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | protected $loadedSuites = []; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param Options $options |
|
| 27 | + */ |
|
| 25 | 28 | public function __construct($options = null) |
| 26 | 29 | { |
| 27 | 30 | if ($options && !$options instanceof Options) { |
@@ -121,6 +124,9 @@ discard block |
||
| 121 | 124 | } |
| 122 | 125 | } |
| 123 | 126 | |
| 127 | + /** |
|
| 128 | + * @param ParsedClass $class |
|
| 129 | + */ |
|
| 124 | 130 | private function executableTests($path, $class) |
| 125 | 131 | { |
| 126 | 132 | $executableTests = []; |
@@ -162,6 +168,10 @@ discard block |
||
| 162 | 168 | return $batches; |
| 163 | 169 | } |
| 164 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $dependsOn |
|
| 173 | + * @param string[] $tests |
|
| 174 | + */ |
|
| 165 | 175 | private function addDependentTestsToBatchSet(&$batches, $dependsOn, $tests) |
| 166 | 176 | { |
| 167 | 177 | foreach ($batches as $key => $batch) { |
@@ -174,6 +184,9 @@ discard block |
||
| 174 | 184 | } |
| 175 | 185 | } |
| 176 | 186 | |
| 187 | + /** |
|
| 188 | + * @param string[] $tests |
|
| 189 | + */ |
|
| 177 | 190 | private function addTestsToBatchSet(&$batches, $tests, $maxBatchSize) |
| 178 | 191 | { |
| 179 | 192 | foreach ($tests as $test) { |
@@ -264,6 +277,10 @@ discard block |
||
| 264 | 277 | return $result; |
| 265 | 278 | } |
| 266 | 279 | |
| 280 | + /** |
|
| 281 | + * @param string $className |
|
| 282 | + * @param string $name |
|
| 283 | + */ |
|
| 267 | 284 | private function testMatchOptions($className, $name, $group) |
| 268 | 285 | { |
| 269 | 286 | $result = $this->testMatchGroupOptions($group) |
@@ -272,6 +289,9 @@ discard block |
||
| 272 | 289 | return $result; |
| 273 | 290 | } |
| 274 | 291 | |
| 292 | + /** |
|
| 293 | + * @param ParsedObject $method |
|
| 294 | + */ |
|
| 275 | 295 | private function methodDataProvider($method) |
| 276 | 296 | { |
| 277 | 297 | if (preg_match("/@\bdataProvider\b \b(.*)\b/", $method->getDocBlock(), $matches)) { |
@@ -288,6 +308,9 @@ discard block |
||
| 288 | 308 | return null; |
| 289 | 309 | } |
| 290 | 310 | |
| 311 | + /** |
|
| 312 | + * @param ParsedObject $method |
|
| 313 | + */ |
|
| 291 | 314 | private function methodGroups($method) |
| 292 | 315 | { |
| 293 | 316 | if (preg_match_all("/@\bgroup\b \b(.*)\b/", $method->getDocBlock(), $matches)) { |