@@ -11,9 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace phpDocumentor\Plugin\Core\Descriptor\Validator\Constraints\Functions; |
13 | 13 | |
14 | -use phpDocumentor\Descriptor\MethodDescriptor; |
|
15 | -use phpDocumentor\Descriptor\FunctionDescriptor; |
|
16 | -use phpDocumentor\Descriptor\Tag\ParamDescriptor; |
|
17 | 14 | use Symfony\Component\Validator\Constraint; |
18 | 15 | use Symfony\Component\Validator\ConstraintValidator; |
19 | 16 | use Symfony\Component\Validator\Exception\ConstraintDefinitionException; |
@@ -103,7 +103,7 @@ |
||
103 | 103 | * See the Class' DocBlock for a listing of functionality added by this |
104 | 104 | * Extension. |
105 | 105 | * |
106 | - * @return \Twig_FunctionInterface[] |
|
106 | + * @return \Twig_SimpleFunction[] |
|
107 | 107 | */ |
108 | 108 | public function getFunctions() |
109 | 109 | { |
@@ -291,7 +291,7 @@ |
||
291 | 291 | } |
292 | 292 | |
293 | 293 | /** |
294 | - * @param $full_namespace_name |
|
294 | + * @param string $full_namespace_name |
|
295 | 295 | * @param $label |
296 | 296 | * |
297 | 297 | * @return mixed |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | } |
453 | 453 | |
454 | 454 | /** |
455 | - * @param $result |
|
455 | + * @param \stdClass $result |
|
456 | 456 | * |
457 | 457 | * @return array |
458 | 458 | */ |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | } |
473 | 473 | |
474 | 474 | /** |
475 | - * @param $result |
|
475 | + * @param \stdClass $result |
|
476 | 476 | * |
477 | 477 | * @return array |
478 | 478 | */ |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | /** |
525 | 525 | * Returns a SeeDescriptor with its reference set. |
526 | 526 | * |
527 | - * @param $reference |
|
527 | + * @param string $reference |
|
528 | 528 | * |
529 | 529 | * @return SeeDescriptor |
530 | 530 | */ |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * @param ArgumentDescriptor|m\MockInterface $argumentMock |
155 | 155 | * @param DocBlock|m\MockInterface $docBlockMock |
156 | 156 | * |
157 | - * @return MethodReflector|m\MockInterface |
|
157 | + * @return MethodReflector |
|
158 | 158 | */ |
159 | 159 | protected function givenAMethodReflector($namespace, $methodName, $argumentMock, $docBlockMock = null) |
160 | 160 | { |
@@ -176,6 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Generates a DocBlock object with applicable defaults for these tests. |
178 | 178 | * |
179 | + * @param boolean $withTags |
|
179 | 180 | * @return DocBlock|m\MockInterface |
180 | 181 | */ |
181 | 182 | protected function givenADocBlockObject($withTags) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $propertyName |
72 | 72 | * @param DocBlock|m\MockInterface $docBlockMock |
73 | 73 | * |
74 | - * @return PropertyReflector|m\MockInterface |
|
74 | + * @return PropertyReflector |
|
75 | 75 | */ |
76 | 76 | protected function givenAPropertyReflector($namespace, $propertyName, $docBlockMock = null) |
77 | 77 | { |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Generates a DocBlock object with applicable defaults for these tests. |
93 | 93 | * |
94 | + * @param boolean $withTags |
|
94 | 95 | * @return DocBlock|m\MockInterface |
95 | 96 | */ |
96 | 97 | protected function givenADocBlockObject($withTags) |
@@ -175,6 +175,9 @@ discard block |
||
175 | 175 | $this->assertSame('documented', $result); |
176 | 176 | } |
177 | 177 | |
178 | + /** |
|
179 | + * @param m\MockInterface $elementList |
|
180 | + */ |
|
178 | 181 | private function givenAProjectDescriptorBuilder($elementList) |
179 | 182 | { |
180 | 183 | $projectDescriptor = m::mock('\phpDocumentor\Descriptor\ProjectDescriptor'); |
@@ -184,6 +187,9 @@ discard block |
||
184 | 187 | return $projectDescriptorBuilder; |
185 | 188 | } |
186 | 189 | |
190 | + /** |
|
191 | + * @param m\MockInterface|null $rule |
|
192 | + */ |
|
187 | 193 | private function givenARouter($rule) |
188 | 194 | { |
189 | 195 | $queue = m::mock('phpDocumentor\Transformer\Router\Queue'); |
@@ -153,6 +153,7 @@ |
||
153 | 153 | * @param string $classFqsen |
154 | 154 | * @param string $tagName |
155 | 155 | * @param string $methodName |
156 | + * @param integer $expectedCount |
|
156 | 157 | * @Then class ":classFqsen" has a method named :method with exactly :expected tag :tagName |
157 | 158 | */ |
158 | 159 | public function classHasMethodWithExpectedCountTag($classFqsen, $tagName, $methodName, $expectedCount) |
@@ -13,16 +13,12 @@ |
||
13 | 13 | namespace phpDocumentor\Behat\Contexts\Ast; |
14 | 14 | |
15 | 15 | use Behat\Behat\Context\Context; |
16 | -use Behat\Behat\Hook\Scope\BeforeScenarioScope; |
|
17 | 16 | use Behat\Gherkin\Node\PyStringNode; |
18 | -use phpDocumentor\Behat\Contexts\EnvironmentContext; |
|
19 | 17 | use phpDocumentor\Descriptor\ClassDescriptor; |
20 | 18 | use phpDocumentor\Descriptor\Collection; |
21 | 19 | use phpDocumentor\Descriptor\DescriptorAbstract; |
22 | 20 | use phpDocumentor\Descriptor\FileDescriptor; |
23 | -use phpDocumentor\Descriptor\ProjectDescriptor; |
|
24 | 21 | use phpDocumentor\Descriptor\Tag\VersionDescriptor; |
25 | -use phpDocumentor\Reflection\DocBlock\Tag\SeeTag; |
|
26 | 22 | use PHPUnit\Framework\Assert; |
27 | 23 | |
28 | 24 | class ApiContext extends BaseContext implements Context |
@@ -134,6 +134,11 @@ discard block |
||
134 | 134 | $this->assertSame([], $descriptor->getErrors()->getAll()); |
135 | 135 | } |
136 | 136 | |
137 | + /** |
|
138 | + * @param string $name |
|
139 | + * @param string $description |
|
140 | + * @param m\MockInterface $docBlock |
|
141 | + */ |
|
137 | 142 | protected function givenASeeTag($name, $description, $reference, $docBlock) |
138 | 143 | { |
139 | 144 | $seeTagMock = m::mock('phpDocumentor\Reflection\DocBlock\Tag\SeeTag'); |
@@ -145,6 +150,9 @@ discard block |
||
145 | 150 | return $seeTagMock; |
146 | 151 | } |
147 | 152 | |
153 | + /** |
|
154 | + * @param m\MockInterface $context |
|
155 | + */ |
|
148 | 156 | protected function givenADocBlock($context) |
149 | 157 | { |
150 | 158 | $docBlockMock = m::mock('phpDocumentor\Reflection\DocBlock'); |