Changes PHPUnit test methods to snake case
use PHPUnit\Framework\TestCase;
final class SomeClass extends TestCase
{
- public function testSomething()
+ public function test_something()
{
}
}
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferTestsWithSnakeCaseRector;
return RectorConfig::configure()
->withRules([
PreferTestsWithSnakeCaseRector::class,
]);