1 | <?php |
||
34 | class StandardTagFactoryTest extends TestCase |
||
35 | { |
||
36 | /** |
||
37 | * Call Mockery::close after each test. |
||
38 | */ |
||
39 | public function tearDown() : void |
||
43 | |||
44 | /** |
||
45 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
46 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Generic |
||
47 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
48 | * @uses \phpDocumentor\Reflection\DocBlock\Description |
||
49 | * |
||
50 | * @covers ::__construct |
||
51 | * @covers ::create |
||
52 | */ |
||
53 | public function testCreatingAGenericTag() : void |
||
77 | |||
78 | /** |
||
79 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
80 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Author |
||
81 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
82 | * |
||
83 | * @covers ::__construct |
||
84 | * @covers ::create |
||
85 | */ |
||
86 | public function testCreatingASpecificTag() : void |
||
97 | |||
98 | /** |
||
99 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
100 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\See |
||
101 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
102 | * @uses \phpDocumentor\Reflection\Fqsen |
||
103 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Reference\Fqsen |
||
104 | * |
||
105 | * @covers ::__construct |
||
106 | * @covers ::create |
||
107 | */ |
||
108 | public function testAnEmptyContextIsCreatedIfNoneIsProvided() : void |
||
128 | |||
129 | /** |
||
130 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
131 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Author |
||
132 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
133 | * |
||
134 | * @covers ::__construct |
||
135 | * @covers ::create |
||
136 | */ |
||
137 | public function testPassingYourOwnSetOfTagHandlers() : void |
||
148 | |||
149 | /** |
||
150 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
151 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
152 | * |
||
153 | * @covers ::create |
||
154 | */ |
||
155 | public function testExceptionIsThrownIfProvidedTagIsNotWellformed() : void |
||
164 | |||
165 | /** |
||
166 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
167 | * |
||
168 | * @covers ::__construct |
||
169 | * @covers ::addParameter |
||
170 | */ |
||
171 | public function testAddParameterToServiceLocator() : void |
||
183 | |||
184 | /** |
||
185 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
186 | * |
||
187 | * @covers ::addService |
||
188 | */ |
||
189 | public function testAddServiceToServiceLocator() : void |
||
203 | |||
204 | /** |
||
205 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
206 | * |
||
207 | * @covers ::addService |
||
208 | */ |
||
209 | public function testInjectConcreteServiceForInterfaceToServiceLocator() : void |
||
224 | |||
225 | /** |
||
226 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
227 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
228 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::create |
||
229 | * @uses \phpDocumentor\Reflection\DocBlock\Tags\Author |
||
230 | * |
||
231 | * @covers ::registerTagHandler |
||
232 | */ |
||
233 | public function testRegisteringAHandlerForANewTag() : void |
||
244 | |||
245 | /** |
||
246 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
247 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
248 | * |
||
249 | * @covers ::registerTagHandler |
||
250 | */ |
||
251 | public function testHandlerRegistrationFailsIfProvidedTagNameIsNamespaceButNotFullyQualified() : void |
||
259 | |||
260 | /** |
||
261 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
262 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
263 | * |
||
264 | * @covers ::registerTagHandler |
||
265 | */ |
||
266 | public function testHandlerRegistrationFailsIfProvidedHandlerIsEmpty() : void |
||
273 | |||
274 | /** |
||
275 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
276 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
277 | * |
||
278 | * @covers ::registerTagHandler |
||
279 | */ |
||
280 | public function testHandlerRegistrationFailsIfProvidedHandlerIsNotAnExistingClassName() : void |
||
287 | |||
288 | /** |
||
289 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
290 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
291 | * |
||
292 | * @covers ::registerTagHandler |
||
293 | */ |
||
294 | public function testHandlerRegistrationFailsIfProvidedHandlerDoesNotImplementTheTagInterface() : void |
||
301 | |||
302 | /** |
||
303 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::__construct |
||
304 | * @uses \phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService |
||
305 | * @uses \phpDocumentor\Reflection\Docblock\Description |
||
306 | * @uses \phpDocumentor\Reflection\Docblock\Tags\Return_ |
||
307 | * @uses \phpDocumentor\Reflection\Docblock\Tags\BaseTag |
||
308 | * |
||
309 | * @covers ::create |
||
310 | */ |
||
311 | public function testReturnTagIsMappedCorrectly() : void |
||
334 | |||
335 | public function testInvalidTagIsReturnedOnFailure() : void |
||
344 | } |
||
345 |