1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-04-24 01:14:14 +02:00

rename AnnotationReplacerRector to RenameAnnotationRector

This commit is contained in:
Tomas Votruba 2019-03-09 13:15:14 +00:00
parent ccf8fccf9f
commit a7073c2935
6 changed files with 12 additions and 12 deletions
config/level/phpunit
docs
ecs.yml
src/Rector/Annotation
tests/Rector/Annotation/RenameAnnotationRector

@ -1,4 +1,4 @@
services:
Rector\Rector\Annotation\AnnotationReplacerRector:
Rector\Rector\Annotation\RenameAnnotationRector:
PHPUnit\Framework\TestCase:
scenario: 'test'

@ -4431,15 +4431,15 @@ services:
<br>
### `AnnotationReplacerRector`
### `RenameAnnotationRector`
- class: `Rector\Rector\Annotation\AnnotationReplacerRector`
- class: `Rector\Rector\Annotation\RenameAnnotationRector`
Turns defined annotations above properties and methods to their new values.
```yaml
services:
Rector\Rector\Annotation\AnnotationReplacerRector:
Rector\Rector\Annotation\RenameAnnotationRector:
PHPUnit\Framework\TestCase:
test: scenario
```

@ -81,7 +81,7 @@ parameters:
# required for exact string match with "\"
- 'packages/NodeTypeResolver/src/Php/AbstractTypeInfo.php'
# example in description
- 'src/Rector/Annotation/AnnotationReplacerRector.php'
- 'src/Rector/Annotation/RenameAnnotationRector.php'
- 'packages/NetteToSymfony/src/Event/EventInfosFactory.php'
Symplify\CodingStandard\Sniffs\CleanCode\ForbiddenStaticFunctionSniff:

@ -12,7 +12,7 @@ use Rector\Rector\AbstractPHPUnitRector;
use Rector\RectorDefinition\ConfiguredCodeSample;
use Rector\RectorDefinition\RectorDefinition;
final class AnnotationReplacerRector extends AbstractPHPUnitRector
final class RenameAnnotationRector extends AbstractPHPUnitRector
{
/**
* @var string[][]

@ -1,6 +1,6 @@
<?php
namespace Rector\Tests\Rector\Annotation\AnnotationReplacerRector\Fixture;
namespace Rector\Tests\Rector\Annotation\RenameAnnotationRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -16,7 +16,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\Tests\Rector\Annotation\AnnotationReplacerRector\Fixture;
namespace Rector\Tests\Rector\Annotation\RenameAnnotationRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

@ -1,11 +1,11 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Annotation\AnnotationReplacerRector;
namespace Rector\Tests\Rector\Annotation\RenameAnnotationRector;
use Rector\Rector\Annotation\AnnotationReplacerRector;
use Rector\Rector\Annotation\RenameAnnotationRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
final class ScenarioToTestAnnotationRectorTest extends AbstractRectorTestCase
final class RenameAnnotationRectorTest extends AbstractRectorTestCase
{
public function test(): void
{
@ -14,7 +14,7 @@ final class ScenarioToTestAnnotationRectorTest extends AbstractRectorTestCase
protected function getRectorClass(): string
{
return AnnotationReplacerRector::class;
return RenameAnnotationRector::class;
}
/**