|
12 | 12 | use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector; |
13 | 13 | use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DependsAnnotationWithValueToAttributeRector; |
14 | 14 | use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\TestWithAnnotationToAttributeRector; |
| 15 | +use Rector\PHPUnit\CodeQuality\Rector\Class_\AddIntersectionVarToMockObjectPropertyRector; |
| 16 | +use Rector\PHPUnit\CodeQuality\Rector\Class_\AddStubIntersectionVarToStubPropertyRector; |
| 17 | +use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\BareCreateMockAssignToDirectUseRector; |
15 | 18 | use Rector\PHPUnit\PHPUnit110\Rector\CallLike\AssertContainsOnlyMethodCallRector; |
16 | 19 | use Rector\PHPUnit\PHPUnit110\Rector\ClassMethod\MockObjectArgCreateStubToCreateMockRector; |
| 20 | +use Rector\PHPUnit\PHPUnit120\Rector\CallLike\CreateStubInCoalesceArgRector; |
| 21 | +use Rector\PHPUnit\PHPUnit120\Rector\CallLike\CreateStubOverCreateMockArgRector; |
17 | 22 | use Rector\PHPUnit\PHPUnit120\Rector\Class_\AssertIsTypeMethodCallRector; |
| 23 | +use Rector\PHPUnit\PHPUnit120\Rector\Class_\PropertyCreateMockToCreateStubRector; |
| 24 | +use Rector\PHPUnit\PHPUnit120\Rector\ClassMethod\ExpressionCreateMockToCreateStubRector; |
| 25 | +use Rector\PHPUnit\PHPUnit120\Rector\Property\MockObjectVarToStubRector; |
18 | 26 | use Rector\PHPUnit\ValueObject\AnnotationWithValueToAttribute; |
19 | 27 |
|
20 | 28 | /** |
|
35 | 43 | RequiresAnnotationWithValueToAttributeRector::class, |
36 | 44 | DependsAnnotationWithValueToAttributeRector::class, |
37 | 45 |
|
38 | | - // stubs are required over mocks since PHPUnit 11.0 |
| 46 | + // stubs over mocks, where no expectations are set, since PHPUnit 11.0 |
| 47 | + CreateStubOverCreateMockArgRector::class, |
| 48 | + CreateStubInCoalesceArgRector::class, |
| 49 | + ExpressionCreateMockToCreateStubRector::class, |
| 50 | + PropertyCreateMockToCreateStubRector::class, |
| 51 | + MockObjectVarToStubRector::class, |
| 52 | + AddIntersectionVarToMockObjectPropertyRector::class, |
| 53 | + AddStubIntersectionVarToStubPropertyRector::class, |
| 54 | + BareCreateMockAssignToDirectUseRector::class, |
| 55 | + |
| 56 | + // mocks back over stubs, where a mock object is required |
39 | 57 | MockObjectArgCreateStubToCreateMockRector::class, |
40 | 58 |
|
41 | 59 | // deprecated in PHPUnit 11.5 |
|
0 commit comments