Find the best Rector rule to solve your problem. Searching through 661 rules.

Found 1 rule. That's the one:

GetMockRector

Turns getMock*() methods to createMock()

 use PHPUnit\Framework\TestCase;

 final class SomeTest extends TestCase
 {
     public function test()
     {
-        $classMock = $this->getMock("Class");
+        $classMock = $this->createMock("Class");
     }
 }