@@ -75,7 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @param string $testCase |
77 | 77 | * @param boolean $ignoreAnnotations |
78 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
78 | + * @return ASTArtifactList |
|
79 | 79 | */ |
80 | 80 | public function parseTestCaseSource($testCase, $ignoreAnnotations = false) |
81 | 81 | { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | /** |
174 | 174 | * testClassReferenceForJavaStyleArrayNotation |
175 | 175 | * |
176 | - * @return \PDepend\Source\AST\ASTClassOrInterfaceReference |
|
176 | + * @return AbstractASTClassOrInterface|null |
|
177 | 177 | */ |
178 | 178 | public function testClassReferenceForJavaStyleArrayNotation() |
179 | 179 | { |
@@ -123,7 +123,6 @@ |
||
123 | 123 | /** |
124 | 124 | * Returns a node instance for the currently executed test case. |
125 | 125 | * |
126 | - * @param string $testCase Name of the calling test case. |
|
127 | 126 | * |
128 | 127 | * @return \PDepend\Source\AST\ASTVariableVariable |
129 | 128 | */ |
@@ -44,7 +44,6 @@ |
||
44 | 44 | |
45 | 45 | use PDepend\AbstractTest; |
46 | 46 | use PDepend\Util\ConfigurationInstance; |
47 | -use PHPUnit_Framework_TestCase; |
|
48 | 47 | |
49 | 48 | /** |
50 | 49 | * Test case for the text ui command. |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * before an instance of this class gets serialized. It should return an |
327 | 327 | * array with those property names that should be serialized for this class. |
328 | 328 | * |
329 | - * @return array |
|
329 | + * @return string[] |
|
330 | 330 | * @since 0.10.0 |
331 | 331 | */ |
332 | 332 | public function __sleep() |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | * container. |
402 | 402 | * |
403 | 403 | * @param integer $index |
404 | - * @param mixed $value |
|
404 | + * @param integer $value |
|
405 | 405 | * @return void |
406 | 406 | * @since 0.10.4 |
407 | 407 | */ |
@@ -47,7 +47,6 @@ |
||
47 | 47 | use PDepend\Metrics\AnalyzerNodeAware; |
48 | 48 | use PDepend\Metrics\AnalyzerProjectAware; |
49 | 49 | use PDepend\Source\AST\ASTArtifact; |
50 | -use PDepend\Source\AST\ASTArtifactList; |
|
51 | 50 | use PDepend\Source\AST\ASTClass; |
52 | 51 | use PDepend\Source\AST\ASTFunction; |
53 | 52 | use PDepend\Source\AST\ASTInterface; |
@@ -219,6 +219,9 @@ |
||
219 | 219 | ); |
220 | 220 | } |
221 | 221 | |
222 | + /** |
|
223 | + * @param string $fileName |
|
224 | + */ |
|
222 | 225 | protected function getNormalizedPathXml($fileName) |
223 | 226 | { |
224 | 227 | return preg_replace( |
@@ -263,6 +263,9 @@ discard block |
||
263 | 263 | unlink($output); |
264 | 264 | } |
265 | 265 | |
266 | + /** |
|
267 | + * @return \PDepend\Metrics\Analyzer |
|
268 | + */ |
|
266 | 269 | private function createCouplingAnalyzer() |
267 | 270 | { |
268 | 271 | $mock = $this->getMockBuilder('\\PDepend\\Metrics\\Analyzer\\CouplingAnalyzer') |
@@ -279,6 +282,9 @@ discard block |
||
279 | 282 | return $mock; |
280 | 283 | } |
281 | 284 | |
285 | + /** |
|
286 | + * @return \PDepend\Metrics\Analyzer |
|
287 | + */ |
|
282 | 288 | private function createComplexityAnalyzer() |
283 | 289 | { |
284 | 290 | $mock = $this->getMockBuilder('\\PDepend\\Metrics\\Analyzer\\CyclomaticComplexityAnalyzer') |
@@ -294,6 +300,9 @@ discard block |
||
294 | 300 | return $mock; |
295 | 301 | } |
296 | 302 | |
303 | + /** |
|
304 | + * @return \PDepend\Metrics\Analyzer |
|
305 | + */ |
|
297 | 306 | private function createInheritanceAnalyzer() |
298 | 307 | { |
299 | 308 | $mock = $this->getMockBuilder('\\PDepend\\Metrics\\Analyzer\\InheritanceAnalyzer') |
@@ -310,6 +319,9 @@ discard block |
||
310 | 319 | return $mock; |
311 | 320 | } |
312 | 321 | |
322 | + /** |
|
323 | + * @return \PDepend\Metrics\Analyzer |
|
324 | + */ |
|
313 | 325 | private function createNodeCountAnalyzer() |
314 | 326 | { |
315 | 327 | $mock = $this->getMockBuilder('\\PDepend\\Metrics\\Analyzer\\NodeCountAnalyzer') |
@@ -328,6 +340,9 @@ discard block |
||
328 | 340 | return $mock; |
329 | 341 | } |
330 | 342 | |
343 | + /** |
|
344 | + * @return \PDepend\Metrics\Analyzer |
|
345 | + */ |
|
331 | 346 | private function createNodeLocAnalyzer() |
332 | 347 | { |
333 | 348 | $mock = $this->getMockBuilder('\\PDepend\\Metrics\\Analyzer\\NodeLocAnalyzer') |
@@ -785,7 +785,7 @@ |
||
785 | 785 | * @param string $testCase |
786 | 786 | * @param boolean $ignoreAnnotations |
787 | 787 | * |
788 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
788 | + * @return ASTArtifactList |
|
789 | 789 | */ |
790 | 790 | public function parseTestCaseSource($testCase, $ignoreAnnotations = false) |
791 | 791 | { |