@@ -189,6 +189,7 @@ discard block |
||
189 | 189 | * @param string $classFqsen |
190 | 190 | * @param string $tagName |
191 | 191 | * @param string $methodName |
192 | + * @param integer $expectedCount |
|
192 | 193 | * @Then class ":classFqsen" has a method named :method with exactly :expected tag :tagName |
193 | 194 | */ |
194 | 195 | public function classHasMethodWithExpectedCountTag($classFqsen, $tagName, $methodName, $expectedCount) |
@@ -439,6 +440,8 @@ discard block |
||
439 | 440 | |
440 | 441 | /** |
441 | 442 | * @throws Exception |
443 | + * @param string $classFqsen |
|
444 | + * @param string $methodName |
|
442 | 445 | */ |
443 | 446 | private function findMagicMethodResponse($classFqsen, $methodName): ReturnDescriptor |
444 | 447 | { |
@@ -13,7 +13,6 @@ discard block |
||
13 | 13 | namespace phpDocumentor\Behat\Contexts\Ast; |
14 | 14 | |
15 | 15 | use Behat\Behat\Context\Context; |
16 | -use Behat\Behat\Tester\Exception\PendingException; |
|
17 | 16 | use Behat\Gherkin\Node\PyStringNode; |
18 | 17 | use phpDocumentor\Descriptor\ArgumentDescriptor; |
19 | 18 | use phpDocumentor\Descriptor\ClassDescriptor; |
@@ -28,7 +27,6 @@ discard block |
||
28 | 27 | use phpDocumentor\Descriptor\Tag\ReturnDescriptor; |
29 | 28 | use phpDocumentor\Descriptor\Tag\VersionDescriptor; |
30 | 29 | use phpDocumentor\Descriptor\TraitDescriptor; |
31 | -use phpDocumentor\Reflection\Php\File; |
|
32 | 30 | use Webmozart\Assert\Assert; |
33 | 31 | |
34 | 32 | class ApiContext extends BaseContext implements Context |
@@ -163,6 +163,9 @@ discard block |
||
163 | 163 | { |
164 | 164 | const INTERFACE_CONSTANT = 'test'; |
165 | 165 | |
166 | + /** |
|
167 | + * @return SubInterface|null |
|
168 | + */ |
|
166 | 169 | public function publicMethod(); |
167 | 170 | } |
168 | 171 | |
@@ -172,6 +175,10 @@ discard block |
||
172 | 175 | */ |
173 | 176 | interface AnotherSuperInterface |
174 | 177 | { |
178 | + |
|
179 | + /** |
|
180 | + * @return void |
|
181 | + */ |
|
175 | 182 | public static function staticMethod(); |
176 | 183 | } |
177 | 184 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | /** |
392 | 392 | * Sets up mocks as such that the fixture has a file. |
393 | 393 | * |
394 | - * @return m\MockInterface|FileDescriptor |
|
394 | + * @return m\LegacyMockInterface |
|
395 | 395 | */ |
396 | 396 | protected function whenFixtureIsDirectlyRelatedToAFile() |
397 | 397 | { |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | /** |
404 | 404 | * Sets up mocks as such that the fixture has a parent class, with a file. |
405 | 405 | * |
406 | - * @return m\MockInterface|FileDescriptor |
|
406 | + * @return m\LegacyMockInterface |
|
407 | 407 | */ |
408 | 408 | protected function whenFixtureIsRelatedToAClassWithFile() |
409 | 409 | { |
@@ -63,6 +63,10 @@ |
||
63 | 63 | $this->assertSame([], $descriptor->getErrors()->getAll()); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $description |
|
68 | + * @param string $reference |
|
69 | + */ |
|
66 | 70 | protected function givenAUsesTag($description, $reference) : Uses |
67 | 71 | { |
68 | 72 | return new Uses( |
@@ -13,7 +13,6 @@ |
||
13 | 13 | namespace phpDocumentor\Behat\Contexts; |
14 | 14 | |
15 | 15 | use Behat\Behat\Context; |
16 | -use Behat\Behat\Tester\Exception\PendingException; |
|
17 | 16 | use FilesystemIterator; |
18 | 17 | use RecursiveDirectoryIterator; |
19 | 18 | use RecursiveIteratorIterator; |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * Creates a Descriptor from the provided data. |
34 | 34 | * |
35 | - * @param mixed $data |
|
35 | + * @param File $data |
|
36 | 36 | */ |
37 | 37 | public function create($data) : FileDescriptor |
38 | 38 | { |
@@ -36,6 +36,7 @@ discard block |
||
36 | 36 | * @param ?Type $type Type of this agument represented as a reflection type. |
37 | 37 | * |
38 | 38 | * @todo update link to point to the final destination for the PHPDoc Standard. |
39 | + * @return void |
|
39 | 40 | */ |
40 | 41 | public function setType(?Type $type) : void; |
41 | 42 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | * Returns a normalized Types. |
44 | 45 | * |
45 | 46 | * @see self::setTypes() for details on what types represent. |
47 | + * @return Type|null |
|
46 | 48 | */ |
47 | 49 | public function getType() : ?Type; |
48 | 50 | |
@@ -50,6 +52,7 @@ discard block |
||
50 | 52 | * Sets the default value for an argument expressed as a string. |
51 | 53 | * |
52 | 54 | * @param string $value A textual representation of the default value. |
55 | + * @return void |
|
53 | 56 | */ |
54 | 57 | public function setDefault(string $value) : void; |
55 | 58 | |
@@ -64,6 +67,7 @@ discard block |
||
64 | 67 | * Sets whether this argument passes its parameter by reference or by value. |
65 | 68 | * |
66 | 69 | * @param bool $byReference True if the parameter is passed by reference, otherwise it is by value. |
70 | + * @return void |
|
67 | 71 | */ |
68 | 72 | public function setByReference(bool $byReference) : void; |
69 | 73 |
@@ -32,6 +32,7 @@ |
||
32 | 32 | * Sets the parent for this Descriptor. |
33 | 33 | * |
34 | 34 | * @param ?DescriptorAbstract $parent |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function setParent(?DescriptorAbstract $parent) : void; |
37 | 38 | } |
@@ -169,6 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | /** |
171 | 171 | * Creates a sample method reflector for the tests with the given data. |
172 | + * @param DocBlock $docBlockMock |
|
172 | 173 | */ |
173 | 174 | protected function givenAMethodReflector( |
174 | 175 | string $namespace, |
@@ -189,6 +190,7 @@ discard block |
||
189 | 190 | |
190 | 191 | /** |
191 | 192 | * Generates a DocBlock object with applicable defaults for these tests. |
193 | + * @param boolean $withTags |
|
192 | 194 | */ |
193 | 195 | protected function givenADocBlockObject($withTags) : DocBlock |
194 | 196 | { |