AssertNotOperatorRector

Turns not-operator comparisons to their method name alternatives in PHPUnit TestCase

-$this->assertTrue(!$foo, "message");
+$this->assertFalse($foo, "message");

Configure your rector.php:

<?php

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

return RectorConfig::configure()
    ->withRules([
        AssertNotOperatorRector::class,
    ]);
SETS:  Code Quality