2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Rector\PHPUnit\Rector\Class_\RemoveDataProviderTestPrefixRector;
|
2020-08-18 17:57:30 +02:00
|
|
|
use Rector\Renaming\Rector\ClassMethod\RenameAnnotationRector;
|
2020-09-12 23:19:08 +02:00
|
|
|
use Rector\Renaming\ValueObject\RenameAnnotation;
|
2020-08-26 12:54:53 +02:00
|
|
|
use function Rector\SymfonyPhpConfig\inline_value_objects;
|
2020-07-18 18:57:24 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
$containerConfigurator->import(__DIR__ . '/phpunit-exception.php');
|
|
|
|
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
|
|
|
|
$services->set(RenameAnnotationRector::class)
|
2020-07-30 00:43:06 +02:00
|
|
|
->call('configure', [[
|
2020-08-26 12:54:53 +02:00
|
|
|
RenameAnnotationRector::RENAMED_ANNOTATIONS_IN_TYPES => inline_value_objects([
|
2020-09-12 23:19:08 +02:00
|
|
|
new RenameAnnotation('PHPUnit\Framework\TestCase', 'scenario', 'test'),
|
2020-08-26 12:54:53 +02:00
|
|
|
]),
|
2020-07-30 00:43:06 +02:00
|
|
|
]]);
|
2020-07-18 18:57:24 +02:00
|
|
|
|
|
|
|
$services->set(RemoveDataProviderTestPrefixRector::class);
|
|
|
|
};
|