fix tests

This commit is contained in:
TomasVotruba 2017-09-09 20:35:16 +02:00
parent e6d297a2e6
commit 85d6f6a0fc
18 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@ final class NamespaceClassRector extends AbstractClassReplacerRector
protected function getOldToNewClasses(): array
{
return [
'PHP_CodeSniffer_Sniffs_File' => 'PHP_CodeSniffer\Sniffs\Sniff',
'PHP_CodeSniffer_Sniffs_Sniff' => 'PHP_CodeSniffer\Sniffs\Sniff',
'PHP_CodeSniffer_File' => 'PHP_CodeSniffer\Files\File',
'PHP_CodeSniffer_Tokens' => 'PHP_CodeSniffer\Util\Tokens',
'StandardName_Tests_Category_TestSniffUnitTest' => 'PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest',

View File

@ -13,7 +13,7 @@ use Rector\Node\Attribute;
use Rector\NodeAnalyzer\SymfonyContainerCallsAnalyzer;
use Rector\NodeFactory\NodeFactory;
use Rector\Rector\AbstractRector;
use Rector\Tests\Rector\Contrib\SymfonyExtra\GetterToPropertyRector\Source\LocalKernel;
use Rector\Tests\Rector\Contrib\Symfony\GetterToPropertyRector\Source\LocalKernel;
/**
* Ref: https://github.com/symfony/symfony/blob/master/UPGRADE-4.0.md#console

View File

@ -11,7 +11,7 @@ use Rector\Node\Attribute;
use Rector\NodeAnalyzer\SymfonyContainerCallsAnalyzer;
use Rector\NodeFactory\NodeFactory;
use Rector\Rector\AbstractRector;
use Rector\Tests\Rector\Contrib\SymfonyExtra\GetterToPropertyRector\Source\LocalKernel;
use Rector\Tests\Rector\Contrib\Symfony\GetterToPropertyRector\Source\LocalKernel;
/**
* Converts all:

View File

@ -17,7 +17,7 @@ final class SetNames
/**
* @var string
*/
public const SYMFONY_EXTRA = 'SymfonyExtra';
public const SYMFONY_EXTRA = 'Symfony';
/**
* @var string

View File

@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Contrib\SymfonyExtra\CommandToConstructorInjectionRector;
namespace Rector\Tests\Rector\Contrib\Symfony\CommandToConstructorInjectionRector;
use Rector\Rector\Contrib\SymfonyExtra\CommandToConstructorInjectionRector;
use Rector\Rector\Contrib\Symfony\CommandToConstructorInjectionRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
final class Test extends AbstractRectorTestCase

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Contrib\SymfonyExtra\GetterToPropertyRector\Source;
namespace Rector\Tests\Rector\Contrib\Symfony\GetterToPropertyRector\Source;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

View File

@ -1,8 +1,8 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Contrib\SymfonyExtra\GetterToPropertyRector;
namespace Rector\Tests\Rector\Contrib\Symfony\GetterToPropertyRector;
use Rector\Rector\Contrib\SymfonyExtra\GetterToPropertyRector;
use Rector\Rector\Contrib\Symfony\GetterToPropertyRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
final class Test extends AbstractRectorTestCase