From 326d16538af209fcdfae5010e17ce22f42359223 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 16 Oct 2026 11:48:54 +0200 Subject: [PATCH] add testdox and testWith fixtures from issue tests to rule tests --- .../Fixture/keep_string_as_is.php.inc | 31 +++++++++++++++++ .../testdox_multi_double_colon.php.inc | 33 +++++++++++++++++++ .../Fixture/testdox_single.php.inc | 33 +++++++++++++++++++ .../config/configured_rule.php | 1 + 4 files changed, 98 insertions(+) create mode 100644 rules-tests/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector/Fixture/keep_string_as_is.php.inc create mode 100644 rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_multi_double_colon.php.inc create mode 100644 rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_single.php.inc diff --git a/rules-tests/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector/Fixture/keep_string_as_is.php.inc b/rules-tests/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector/Fixture/keep_string_as_is.php.inc new file mode 100644 index 000000000..04967bcb9 --- /dev/null +++ b/rules-tests/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector/Fixture/keep_string_as_is.php.inc @@ -0,0 +1,31 @@ + +----- + diff --git a/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_multi_double_colon.php.inc b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_multi_double_colon.php.inc new file mode 100644 index 000000000..a480db339 --- /dev/null +++ b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_multi_double_colon.php.inc @@ -0,0 +1,33 @@ + +----- + diff --git a/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_single.php.inc b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_single.php.inc new file mode 100644 index 000000000..937c0d170 --- /dev/null +++ b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/Fixture/testdox_single.php.inc @@ -0,0 +1,33 @@ + +----- + diff --git a/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/config/configured_rule.php b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/config/configured_rule.php index 9f77c975f..a5ddb286d 100644 --- a/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/config/configured_rule.php +++ b/rules-tests/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector/config/configured_rule.php @@ -14,5 +14,6 @@ ]), new AnnotationWithValueToAttribute('dataProvider', 'PHPUnit\Framework\Attributes\DataProvider'), new AnnotationWithValueToAttribute('uses', 'PHPUnit\Framework\Attributes\UsesClass', [], true), + new AnnotationWithValueToAttribute('testdox', 'PHPUnit\Framework\Attributes\TestDox'), ]); };