We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f75f1d commit 64e678eCopy full SHA for 64e678e
config/sets/phpunit-code-quality.php
@@ -38,6 +38,7 @@
38
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\StringCastAssertStringContainsStringRector;
39
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWillMethodRector;
40
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWithMethodRector;
41
+use Rector\PHPUnit\PHPUnit60\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector;
42
43
return static function (RectorConfig $rectorConfig): void {
44
$rectorConfig->rules([
@@ -99,5 +100,8 @@
99
100
*/
101
RemoveExpectAnyFromMockRector::class,
102
SingleMockPropertyTypeRector::class,
103
+
104
+ // prefer simple mocking
105
+ GetMockBuilderGetMockToCreateMockRector::class,
106
]);
107
};
0 commit comments