From d14f75039d58aac12d77f650da034b77e6fe585b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Tue, 20 Jan 2026 16:34:18 +0400 Subject: [PATCH] Add data sets for test --- tests/unit/DocBlock/StandardTagFactoryTest.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/unit/DocBlock/StandardTagFactoryTest.php b/tests/unit/DocBlock/StandardTagFactoryTest.php index 8000b85..a888888 100644 --- a/tests/unit/DocBlock/StandardTagFactoryTest.php +++ b/tests/unit/DocBlock/StandardTagFactoryTest.php @@ -22,9 +22,11 @@ use phpDocumentor\Reflection\Assets\CustomServiceInterface; use phpDocumentor\Reflection\Assets\CustomTagFactory; use phpDocumentor\Reflection\DocBlock\Tags\Author; use phpDocumentor\Reflection\DocBlock\Tags\Deprecated; +use phpDocumentor\Reflection\DocBlock\Tags\Extends_; use phpDocumentor\Reflection\DocBlock\Tags\Formatter; use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter; use phpDocumentor\Reflection\DocBlock\Tags\Generic; +use phpDocumentor\Reflection\DocBlock\Tags\Implements_; use phpDocumentor\Reflection\DocBlock\Tags\Method; use phpDocumentor\Reflection\DocBlock\Tags\Mixin; use phpDocumentor\Reflection\DocBlock\Tags\Param; @@ -33,7 +35,10 @@ use phpDocumentor\Reflection\DocBlock\Tags\PropertyRead; use phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite; use phpDocumentor\Reflection\DocBlock\Tags\Return_; use phpDocumentor\Reflection\DocBlock\Tags\See; +use phpDocumentor\Reflection\DocBlock\Tags\Template; use phpDocumentor\Reflection\DocBlock\Tags\TemplateCovariant; +use phpDocumentor\Reflection\DocBlock\Tags\TemplateExtends; +use phpDocumentor\Reflection\DocBlock\Tags\TemplateImplements; use phpDocumentor\Reflection\DocBlock\Tags\Throws; use phpDocumentor\Reflection\DocBlock\Tags\Var_; use phpDocumentor\Reflection\Fqsen; @@ -583,7 +588,14 @@ class StandardTagFactoryTest extends TestCase ['@return string', Return_::class], ['@throws Throwable', Throws::class], ['@var string $var', Var_::class], - ['@template-covariant string', TemplateCovariant::class], + ['@template T', Template::class], + ['@template-covariant T', TemplateCovariant::class], + ['@extends Foo', Extends_::class], + ['@implements Foo', Implements_::class], + + // TODO: add factories for this tags + // ['@template-extends Foo', TemplateExtends::class], + // ['@template-implements Foo', TemplateImplements::class], ]; } }