|
4 | 4 |
|
5 | 5 | namespace Rector\Tests\Config; |
6 | 6 |
|
7 | | -use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; |
8 | 7 | use Rector\Configuration\Option; |
9 | 8 | use Rector\Configuration\Parameter\SimpleParameterProvider; |
10 | 9 | use Rector\Renaming\Rector\MethodCall\RenameMethodRector; |
11 | 10 | use Rector\Renaming\Rector\Name\RenameClassRector; |
12 | 11 | use Rector\Renaming\Rector\PropertyFetch\RenamePropertyRector; |
13 | 12 | use Rector\Renaming\ValueObject\MethodCallRename; |
14 | 13 | use Rector\Renaming\ValueObject\RenameProperty; |
15 | | -use Rector\Symfony\Set\TwigSetList; |
| 14 | +use Rector\Symfony\Set\SymfonySetList; |
16 | 15 | use Rector\Testing\PHPUnit\AbstractLazyTestCase; |
17 | 16 | use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector; |
18 | 17 |
|
19 | | -/** |
20 | | - * On macOS, this file order config cause this container read other tests' config. |
21 | | - * so, this #[RunTestsInSeparateProcesses] is needed. |
22 | | - */ |
23 | | -#[RunTestsInSeparateProcesses] |
24 | 18 | final class RectorConfigTest extends AbstractLazyTestCase |
25 | 19 | { |
26 | 20 | public function test(): void |
27 | 21 | { |
28 | 22 | $rectorConfig = $this->getContainer(); |
29 | 23 |
|
30 | 24 | $rectorConfig->configure() |
31 | | - ->withSets([TwigSetList::TWIG_134]) |
32 | | - ->withRules([ReturnTypeFromReturnNewRector::class])($rectorConfig); |
| 25 | + ->withSets([SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION]) |
| 26 | + ->withRules([ReturnTypeFromReturnNewRector::class]); |
33 | 27 |
|
34 | 28 | // only collect root withRules() |
35 | 29 | $this->assertCount(1, SimpleParameterProvider::provideArrayParameter(Option::ROOT_STANDALONE_REGISTERED_RULES)); |
|
0 commit comments