Skip to content

Commit d14f750

Browse files
committed
Add data sets for test
1 parent 897592c commit d14f750

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/unit/DocBlock/StandardTagFactoryTest.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
use phpDocumentor\Reflection\Assets\CustomTagFactory;
2323
use phpDocumentor\Reflection\DocBlock\Tags\Author;
2424
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
25+
use phpDocumentor\Reflection\DocBlock\Tags\Extends_;
2526
use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
2627
use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter;
2728
use phpDocumentor\Reflection\DocBlock\Tags\Generic;
29+
use phpDocumentor\Reflection\DocBlock\Tags\Implements_;
2830
use phpDocumentor\Reflection\DocBlock\Tags\Method;
2931
use phpDocumentor\Reflection\DocBlock\Tags\Mixin;
3032
use phpDocumentor\Reflection\DocBlock\Tags\Param;
@@ -33,7 +35,10 @@
3335
use phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite;
3436
use phpDocumentor\Reflection\DocBlock\Tags\Return_;
3537
use phpDocumentor\Reflection\DocBlock\Tags\See;
38+
use phpDocumentor\Reflection\DocBlock\Tags\Template;
3639
use phpDocumentor\Reflection\DocBlock\Tags\TemplateCovariant;
40+
use phpDocumentor\Reflection\DocBlock\Tags\TemplateExtends;
41+
use phpDocumentor\Reflection\DocBlock\Tags\TemplateImplements;
3742
use phpDocumentor\Reflection\DocBlock\Tags\Throws;
3843
use phpDocumentor\Reflection\DocBlock\Tags\Var_;
3944
use phpDocumentor\Reflection\Fqsen;
@@ -583,7 +588,14 @@ public static function provideCreateWithTagWithTypesData(): array
583588
['@return string', Return_::class],
584589
['@throws Throwable', Throws::class],
585590
['@var string $var', Var_::class],
586-
['@template-covariant string', TemplateCovariant::class],
591+
['@template T', Template::class],
592+
['@template-covariant T', TemplateCovariant::class],
593+
['@extends Foo<Bar>', Extends_::class],
594+
['@implements Foo<Bar>', Implements_::class],
595+
596+
// TODO: add factories for this tags
597+
// ['@template-extends Foo', TemplateExtends::class],
598+
// ['@template-implements Foo', TemplateImplements::class],
587599
];
588600
}
589601
}

0 commit comments

Comments
 (0)