Replace deprecated TestCase::getName() with TestCase::name() for PHPUnit 10 compatibility
-$this->getName()
+$this->name()
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\GetNameToNameRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
GetNameToNameRector::class,
]);