Skip to content

Commit 03d2f60

Browse files
committed
one more
1 parent 844f944 commit 03d2f60

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rules/PHPUnit120/Rector/Class_/AllowMockObjectsWhereParentClassRector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ final class AllowMockObjectsWhereParentClassRector extends AbstractRector
3030
/**
3131
* @var string[]
3232
*/
33-
private const array PARENT_CLASSES = [PHPUnitClassName::SYMFONY_CONSTRAINT_VALIDATOR_TEST_CASE];
33+
private const array PARENT_CLASSES = [
34+
PHPUnitClassName::SYMFONY_CONSTRAINT_VALIDATOR_TEST_CASE,
35+
PHPUnitClassName::SYMFONY_TYPE_TEST_CASE,
36+
];
3437

3538
public function __construct(
3639
private readonly TestsNodeAnalyzer $testsNodeAnalyzer,

src/Enum/PHPUnitClassName.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ final class PHPUnitClassName
2929

3030
public const string SYMFONY_CONSTRAINT_VALIDATOR_TEST_CASE = 'Symfony\Component\Validator\Test\ConstraintValidatorTestCase';
3131

32+
public const string SYMFONY_TYPE_TEST_CASE = 'Symfony\Component\Form\Test\TypeTestCase';
33+
3234
/**
3335
* @var string[]
3436
*/

0 commit comments

Comments
 (0)