Skip to content

Commit 01d7283

Browse files
committed
register ReplaceAtMethodWithDesiredMatcherRector to code-quality
1 parent dd5bdcc commit 01d7283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/sets/phpunit-code-quality.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWillMethodRector;
4747
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWithMethodRector;
4848
use Rector\PHPUnit\PHPUnit60\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector;
49+
use Rector\PHPUnit\PHPUnit90\Rector\MethodCall\ReplaceAtMethodWithDesiredMatcherRector;
4950

5051
return static function (RectorConfig $rectorConfig): void {
5152
$rectorConfig->rules([
@@ -119,5 +120,6 @@
119120
// prefer simple mocking
120121
GetMockBuilderGetMockToCreateMockRector::class,
121122
EntityDocumentCreateMockToDirectNewRector::class,
123+
ReplaceAtMethodWithDesiredMatcherRector::class,
122124
]);
123125
};

0 commit comments

Comments
 (0)