Skip to content

Commit c09f5b9

Browse files
committed
fixes
1 parent 965cea8 commit c09f5b9

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎tests/Config/RectorConfigTest.php‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,26 @@
44

55
namespace Rector\Tests\Config;
66

7-
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
87
use Rector\Configuration\Option;
98
use Rector\Configuration\Parameter\SimpleParameterProvider;
109
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
1110
use Rector\Renaming\Rector\Name\RenameClassRector;
1211
use Rector\Renaming\Rector\PropertyFetch\RenamePropertyRector;
1312
use Rector\Renaming\ValueObject\MethodCallRename;
1413
use Rector\Renaming\ValueObject\RenameProperty;
15-
use Rector\Symfony\Set\TwigSetList;
14+
use Rector\Symfony\Set\SymfonySetList;
1615
use Rector\Testing\PHPUnit\AbstractLazyTestCase;
1716
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;
1817

19-
/**
20-
* On macOS, this file order config cause this container read other tests' config.
21-
* so, this #[RunTestsInSeparateProcesses] is needed.
22-
*/
23-
#[RunTestsInSeparateProcesses]
2418
final class RectorConfigTest extends AbstractLazyTestCase
2519
{
2620
public function test(): void
2721
{
2822
$rectorConfig = $this->getContainer();
2923

3024
$rectorConfig->configure()
31-
->withSets([TwigSetList::TWIG_134])
32-
->withRules([ReturnTypeFromReturnNewRector::class])($rectorConfig);
25+
->withSets([SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION])
26+
->withRules([ReturnTypeFromReturnNewRector::class]);
3327

3428
// only collect root withRules()
3529
$this->assertCount(1, SimpleParameterProvider::provideArrayParameter(Option::ROOT_STANDALONE_REGISTERED_RULES));

0 commit comments

Comments
 (0)