Skip to content

Commit 785ff73

Browse files
committed
fix class case sensitive fixture fix
1 parent 7f6e907 commit 785ff73

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/Fixture/constructor_private.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ConstructorPrivate
66
{
77
public function __construct()
88
{
9-
$this->value = 'classStringCaseInSensitive';
9+
$this->value = 'constructorPrivate';
1010
}
1111
}
1212

@@ -21,7 +21,7 @@ class ConstructorPrivate
2121
private string $value;
2222
public function __construct()
2323
{
24-
$this->value = 'classStringCaseInSensitive';
24+
$this->value = 'constructorPrivate';
2525
}
2626
}
2727

tests/Config/RectorConfigTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44

55
namespace Rector\Tests\Config;
66

7+
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
78
use Rector\Configuration\Option;
89
use Rector\Configuration\Parameter\SimpleParameterProvider;
910
use Rector\Symfony\Set\TwigSetList;
1011
use Rector\Testing\PHPUnit\AbstractLazyTestCase;
1112
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromReturnNewRector;
1213

14+
/**
15+
* On macOS, this file order config cause this container read other tests' config.
16+
* so, this #[RunTestsInSeparateProcesses] is needed.
17+
*/
18+
#[RunTestsInSeparateProcesses]
1319
final class RectorConfigTest extends AbstractLazyTestCase
1420
{
1521
public function test(): void

0 commit comments

Comments
 (0)