|
38 | 38 | use Rector\Php71\Rector\FuncCall\CountOnNullRector; |
39 | 39 | use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; |
40 | 40 | use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector; |
| 41 | +use Rector\PHPUnit\CodeQuality\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector; |
| 42 | +use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector; |
41 | 43 | use Rector\PHPUnit\Set\PHPUnitSetList; |
42 | 44 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; |
43 | 45 | use Rector\Set\ValueObject\LevelSetList; |
|
51 | 53 | $rectorConfig->sets([ |
52 | 54 | SetList::DEAD_CODE, |
53 | 55 | LevelSetList::UP_TO_PHP_74, |
54 | | - PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD, |
55 | | - PHPUnitSetList::PHPUNIT_80, |
56 | | - PHPUnitSetList::REMOVE_MOCKS, |
| 56 | + PHPUnitSetList::PHPUNIT_CODE_QUALITY, |
| 57 | + PHPUnitSetList::PHPUNIT_100, |
57 | 58 | ]); |
58 | 59 |
|
59 | 60 | $rectorConfig->parallel(240, 8, 1); |
|
77 | 78 | __DIR__ . '/tests/_support', |
78 | 79 | JsonThrowOnErrorRector::class, |
79 | 80 | StringifyStrNeedlesRector::class, |
| 81 | + YieldDataProviderRector::class, |
80 | 82 |
|
81 | 83 | RemoveUnusedPrivateMethodRector::class => [ |
82 | 84 | // private method called via getPrivateMethodInvoker |
83 | 85 | __DIR__ . '/tests/system/Test/ReflectionHelperTest.php', |
84 | 86 | ], |
85 | 87 |
|
| 88 | + ConstructClassMethodToSetUpTestCaseRector::class => [ |
| 89 | + // breaks the constructor |
| 90 | + __DIR__ . '/system/Test/TestResponse.php', |
| 91 | + // See https://github.com/rectorphp/rector/issues/8188 |
| 92 | + __DIR__ . '/system/Test/ControllerResponse.php', |
| 93 | + ], |
| 94 | + |
86 | 95 | RemoveUnusedConstructorParamRector::class => [ |
87 | 96 | // there are deprecated parameters |
88 | 97 | __DIR__ . '/system/Debug/Exceptions.php', |
|
0 commit comments