AssertThatToDirectAssertRector

Change $this->assertThat($value, $this->*()) to direct $this->assert*() method

 use PHPUnit\Framework\TestCase;

 final class SomeTest extends TestCase
 {
     public function test()
     {
-        $this->assertThat($value, $this->isTrue());
+        $this->assertTrue($value);
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertThatToDirectAssertRector;

return RectorConfig::configure()
    ->withRules([
        AssertThatToDirectAssertRector::class,
    ]);