PHPUnit\Framework\TestCase requires a parent constructor call
use PHPUnit\Framework\TestCase;
final class SomeHelper extends TestCase
{
+ public function __construct()
+ {
+ parent::__construct(static::class);
+ }
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\PHPUnit\PHPUnit100\Rector\Class_\ParentTestClassConstructorRector;
return RectorConfig::configure()
->withRules([
ParentTestClassConstructorRector::class,
]);