@@ -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 | { |
@@ -85,6 +85,9 @@ |
||
85 | 85 | $this->assertSame([], $descriptor->getErrors()->getAll()); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param string $description |
|
90 | + */ |
|
88 | 91 | protected function givenASeeTag($reference, $description) : \phpDocumentor\Reflection\DocBlock\Tags\See |
89 | 92 | { |
90 | 93 | return new DocBlock\Tags\See( |
@@ -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( |
@@ -34,6 +34,7 @@ |
||
34 | 34 | * Sets the parent for this Descriptor. |
35 | 35 | * |
36 | 36 | * @param ?DescriptorAbstract $parent |
37 | + * @return void |
|
37 | 38 | */ |
38 | 39 | public function setParent($parent); |
39 | 40 | } |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Mockery as m; |
15 | 15 | use Mockery\Adapter\Phpunit\MockeryTestCase; |
16 | 16 | use phpDocumentor\Descriptor\ClassDescriptor; |
17 | -use phpDocumentor\Descriptor\Collection; |
|
18 | 17 | use phpDocumentor\Descriptor\Collection as DescriptorCollection; |
19 | 18 | use phpDocumentor\Descriptor\DescriptorAbstract; |
20 | 19 | use phpDocumentor\Descriptor\MethodDescriptor; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | /** |
147 | 147 | * Returns a mocked Project Descriptor. |
148 | 148 | * |
149 | - * @param Collection|MockInterface $descriptors |
|
149 | + * @param m\LegacyMockInterface $descriptors |
|
150 | 150 | * |
151 | 151 | * @return MockInterface |
152 | 152 | */ |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Returns the descriptor of the element that the link points to |
163 | 163 | * |
164 | - * @return DescriptorAbstract|MockInterface |
|
164 | + * @return m\LegacyMockInterface |
|
165 | 165 | */ |
166 | 166 | private function givenAnElementToLinkTo() |
167 | 167 | { |
@@ -178,9 +178,9 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Returns a collection with descriptor. This collection will be scanned to see if a link can be made to a file. |
180 | 180 | * |
181 | - * @param DescriptorAbstract|MockInterface $descriptor |
|
181 | + * @param MockInterface $descriptor |
|
182 | 182 | * |
183 | - * @return Collection|MockInterface |
|
183 | + * @return m\LegacyMockInterface |
|
184 | 184 | */ |
185 | 185 | private function givenACollection($descriptor) |
186 | 186 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use phpDocumentor\Descriptor\Collection; |
19 | 19 | use phpDocumentor\Descriptor\DescriptorAbstract; |
20 | 20 | use phpDocumentor\Descriptor\ProjectDescriptor; |
21 | -use phpDocumentor\Transformer\Router\Rule; |
|
22 | 21 | use phpDocumentor\Transformer\Router\Router; |
23 | 22 | |
24 | 23 | /** |
@@ -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; |
@@ -12,10 +12,8 @@ |
||
12 | 12 | |
13 | 13 | namespace phpDocumentor\Descriptor\Cache; |
14 | 14 | |
15 | -use Mockery as m; |
|
16 | 15 | use phpDocumentor\Descriptor\FileDescriptor; |
17 | 16 | use phpDocumentor\Descriptor\ProjectDescriptor; |
18 | -use Stash\Driver\Ephemeral; |
|
19 | 17 | use Stash\Pool; |
20 | 18 | use Symfony\Component\Cache\Adapter\FilesystemAdapter; |
21 | 19 |