diff --git a/rules/CodeQuality/Rector/Expression/ConfiguredMockEntityToSetterObjectRector.php b/rules/CodeQuality/Rector/Expression/ConfiguredMockEntityToSetterObjectRector.php deleted file mode 100644 index 4eb439a8..00000000 --- a/rules/CodeQuality/Rector/Expression/ConfiguredMockEntityToSetterObjectRector.php +++ /dev/null @@ -1,78 +0,0 @@ -createConfiguredMock(SomeObject::class, [ - 'name' => 'John', - 'surname' => 'Doe', - ]); - } -} -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -use PHPUnit\Framework\TestCase; - -final class SomeTest extends TestClass -{ - public function test() - { - $someObject = new SomeObject(); - $someObject->setName('John'); - $someObject->setSurname('Doe'); - } -} -CODE_SAMPLE - ), - ] - ); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [Expression::class, Return_::class]; - } - - /** - * @param Expression|Return_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" is deprecated and should not be used anymore. Remove it from your config files.', - self::class, - )); - } -}