rename Wrong ns to Fixture in tests

This commit is contained in:
Tomas Votruba 2018-12-07 21:51:59 +01:00
parent 47ad07d4b0
commit 2a00f0d51b
150 changed files with 297 additions and 297 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\CombinedAssignRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\CombinedAssignRector\Fixture;
class Whatever
{
@ -28,7 +28,7 @@ class Whatever
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\CombinedAssignRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\CombinedAssignRector\Fixture;
class Whatever
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyEmptyArrayCheckRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyEmptyArrayCheckRector\Fixture;
class SomeClass
{
@ -31,7 +31,7 @@ function simplifyEmptyCheck2()
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyEmptyArrayCheckRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyEmptyArrayCheckRector\Fixture;
class SomeClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
final class MyClass
{
@ -117,7 +117,7 @@ final class MyClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
final class MyClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
$patterns = [];
foreach ($patterns as $pattern) {
@ -28,7 +28,7 @@ return false;
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
$patterns = [];
foreach ($patterns as $pattern) {

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
class SomeClass
{
@ -21,7 +21,7 @@ class SomeClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
class SomeClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
class SomeAnotherClass
{
@ -20,7 +20,7 @@ class SomeAnotherClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\Fixture;
class SomeAnotherClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector\Fixture;
final class MyClass
{
@ -33,7 +33,7 @@ final class MyClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector\Fixture;
final class MyClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Fixture;
class AnyClass
{
@ -22,7 +22,7 @@ class AnyClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\Fixture;
class AnyClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRetor\Wrong;
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRetor\Fixture;
trait ValidatesAttributes
{
@ -37,7 +37,7 @@ trait ValidatesAttributes
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRetor\Wrong;
namespace Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRetor\Fixture;
trait ValidatesAttributes
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function () {
$a = true;
@ -107,7 +107,7 @@ function () {
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function () {
return true;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
class NoError
{
@ -208,7 +208,7 @@ function ($values) {
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
class NoError
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function simplifyUselessVariable3()
{
@ -24,7 +24,7 @@ function simplifyUselessVariable3()
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function simplifyUselessVariable3()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function simplifyUselessVariable4()
{
@ -17,7 +17,7 @@ function simplifyUselessVariable4()
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\Fixture;
function simplifyUselessVariable4()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Stmt\DeadCodeRemovingRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Stmt\DeadCodeRemovingRector\Fixture;
class SomeClass
{
@ -38,7 +38,7 @@ class SomeClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Stmt\DeadCodeRemovingRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Stmt\DeadCodeRemovingRector\Fixture;
class SomeClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Fixture;
final class MyClass
{
@ -47,7 +47,7 @@ final class MyClass
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Fixture;
final class MyClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Fixture;
function unnecessaryTernaryExpression()
{
@ -11,7 +11,7 @@ function unnecessaryTernaryExpression()
-----
<?php
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Wrong;
namespace Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\Fixture;
function unnecessaryTernaryExpression()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\Wrong;
namespace Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\Fixture;
use stdClass;
@ -25,7 +25,7 @@ class SomeClass
-----
<?php
namespace Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\Wrong;
namespace Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\Fixture;
use stdClass;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeChildOfValueObject;
@ -23,7 +23,7 @@ class FirstActionClass
-----
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeChildOfValueObject;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeValueObject;
@ -17,7 +17,7 @@ class FourthActionClass
-----
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeValueObject;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeValueObject;
@ -18,7 +18,7 @@ class ThirdActionClass
-----
<?php
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Wrong;
namespace Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Fixture;
use Rector\DomainDrivenDesign\Tests\Rector\ValueObjectRemoverDocBlockRector\Source\SomeValueObject;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;
@ -26,7 +26,7 @@ class SomeController
-----
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;
@ -16,7 +16,7 @@ class ClassWithInjects35
-----
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;
@ -16,7 +16,7 @@ class ClassWithPublicInjects
-----
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;
@ -16,7 +16,7 @@ class SomeController2
-----
<?php
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Wrong;
namespace Rector\Jms\Tests\Rector\Property\JmsInjectAnnotationRector\Fixture;
use JMS\DiExtraBundle\Annotation as DI;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;
@ -21,7 +21,7 @@ final class MyTestCsae extends TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;
@ -22,7 +22,7 @@ final class MyTestCase2 extends TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;
@ -16,7 +16,7 @@ final class MyTestCase3 extends TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ArrayToYieldDataProviderRector\Fixture;
use PHPUnit\Framework\TestCase;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\DelegateExceptionArgumentsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\DelegateExceptionArgumentsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -15,7 +15,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\DelegateExceptionArgumentsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\DelegateExceptionArgumentsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest extends \PHPUnit_Framework_TestCase
{
@ -18,7 +18,7 @@ final class MyTest extends \PHPUnit_Framework_TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest extends \PHPUnit_Framework_TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest2 extends \PHPUnit_Framework_TestCase
{
@ -20,7 +20,7 @@ final class MyTest2 extends \PHPUnit_Framework_TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest2 extends \PHPUnit_Framework_TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest3 extends \PHPUnit_Framework_TestCase
{
@ -16,7 +16,7 @@ final class MyTest3 extends \PHPUnit_Framework_TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\ExceptionAnnotationRector\Fixture;
final class MyTest3 extends \PHPUnit_Framework_TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\GetMockRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\GetMockRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -17,7 +17,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\GetMockRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\GetMockRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertCompareToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertCompareToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -22,7 +22,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertCompareToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertCompareToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -20,7 +20,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertFalseStrposToContainsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertFalseStrposToContainsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -15,7 +15,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertFalseStrposToContainsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertFalseStrposToContainsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertInstanceOfComparisonRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertInstanceOfComparisonRector\Fixture;
use Foo\Bar;
@ -18,7 +18,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertInstanceOfComparisonRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertInstanceOfComparisonRector\Fixture;
use Foo\Bar;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertIssetToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertIssetToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -17,7 +17,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertIssetToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertIssetToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

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

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -15,7 +15,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Fixture;
final class MyTest2 extends \PHPUnit\Framework\TestCase
{
@ -15,7 +15,7 @@ final class MyTest2 extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertPropertyExistsRector\Fixture;
final class MyTest2 extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertRegExpRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertRegExpRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -17,7 +17,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertRegExpRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertRegExpRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -15,7 +15,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{
@ -21,7 +21,7 @@ final class MyTest extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseInternalTypeToSpecificMethodRector\Fixture;
final class MyTest extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Fixture;
abstract class Testing extends \PHPUnit\Framework\TestCase
{
@ -30,7 +30,7 @@ final class MyTest extends Testing
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Fixture;
abstract class Testing extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Fixture;
use PHPUnit\Framework\TestCase;
@ -17,7 +17,7 @@ final class MyTest2 extends TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\SpecificMethod\AssertTrueFalseToSpecificMethodRector\Fixture;
use PHPUnit\Framework\TestCase;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Fixture;
use PHPUnit\Framework\TestCase;
@ -22,7 +22,7 @@ final class MyTest extends TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Fixture;
use PHPUnit\Framework\TestCase;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Fixture;
final class MyTest2 extends \PHPUnit\Framework\TestCase
{
@ -21,7 +21,7 @@ final class MyTest2 extends \PHPUnit\Framework\TestCase
-----
<?php
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Wrong;
namespace Rector\PHPUnit\Tests\Rector\TryCatchToExpectExceptionRector\Fixture;
final class MyTest2 extends \PHPUnit\Framework\TestCase
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeStaticString
{
@ -20,7 +20,7 @@ class WithSomeStaticString
-----
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeStaticString
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeStaticString2
{
@ -20,7 +20,7 @@ class WithSomeStaticString2
-----
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeStaticString2
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethod
{
@ -28,7 +28,7 @@ class WithSomeInMethod
-----
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethod
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethodPropertySetDefaultAbove
{
@ -17,7 +17,7 @@ class WithSomeInMethodPropertySetDefaultAbove
-----
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethodPropertySetDefaultAbove
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethodExpressions
{
@ -19,7 +19,7 @@ class WithSomeInMethodExpressions
-----
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
class WithSomeInMethodExpressions
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Wrong;
namespace Rector\Php\Tests\Rector\Assign\AssignArrayToStringRector\Fixture;
$a = [];
$a[] = 1;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\BinaryOp\IsIterableRector\Wrong;
namespace Rector\Php\Tests\Rector\BinaryOp\IsIterableRector\Fixture;
use Traversable;
@ -19,7 +19,7 @@ function isIterable()
-----
<?php
namespace Rector\Php\Tests\Rector\BinaryOp\IsIterableRector\Wrong;
namespace Rector\Php\Tests\Rector\BinaryOp\IsIterableRector\Fixture;
use Traversable;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\ClassConst\PublicConstantVisibilityRector\Wrong;
namespace Rector\Php\Tests\Rector\ClassConst\PublicConstantVisibilityRector\Fixture;
final class SomeClass
{
@ -15,7 +15,7 @@ final class SomeClass
-----
<?php
namespace Rector\Php\Tests\Rector\ClassConst\PublicConstantVisibilityRector\Wrong;
namespace Rector\Php\Tests\Rector\ClassConst\PublicConstantVisibilityRector\Fixture;
final class SomeClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\ConstFetch\BarewordStringRector\Wrong;
namespace Rector\Php\Tests\Rector\ConstFetch\BarewordStringRector\Fixture;
const THIS_EXISTS = 'yes';
@ -17,7 +17,7 @@ is_bool(THIS_EXISTS);
-----
<?php
namespace Rector\Php\Tests\Rector\ConstFetch\BarewordStringRector\Wrong;
namespace Rector\Php\Tests\Rector\ConstFetch\BarewordStringRector\Fixture;
const THIS_EXISTS = 'yes';

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Fixture;
function someFunction()
{
@ -13,7 +13,7 @@ function someFunction()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Fixture;
function someFunction()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Fixture;
function someFunction3()
{
@ -17,7 +17,7 @@ function someFunction3()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\ArrayKeyFirstLastRector\Fixture;
function someFunction3()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\CallUserMethodRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\CallUserMethodRector\Fixture;
function callUserMethod()
{
@ -16,7 +16,7 @@ function callUserMethod()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\CallUserMethodRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\CallUserMethodRector\Fixture;
function callUserMethod()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch()
{
@ -16,7 +16,7 @@ function eregToPregMatch()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch2()
{
@ -13,7 +13,7 @@ function eregToPregMatch2()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch2()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch3()
{
@ -15,7 +15,7 @@ function eregToPregMatch3()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch3()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch4()
{
@ -15,7 +15,7 @@ function eregToPregMatch4()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\EregToPregMatchRector\Fixture;
function eregToPregMatch4()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\JsonThrowOnErrorRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\JsonThrowOnErrorRector\Fixture;
function jsonThrowOnError()
{
@ -12,7 +12,7 @@ function jsonThrowOnError()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\JsonThrowOnErrorRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\JsonThrowOnErrorRector\Fixture;
function jsonThrowOnError()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FuncCall\RandomFunctionRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\RandomFunctionRector\Fixture;
function randomFunction()
{
@ -31,7 +31,7 @@ function randomFunction()
-----
<?php
namespace Rector\Php\Tests\Rector\FuncCall\RandomFunctionRector\Wrong;
namespace Rector\Php\Tests\Rector\FuncCall\RandomFunctionRector\Fixture;
function randomFunction()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
use Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Source\SniffInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
use Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Source\AbstractParentClass;
@ -25,7 +25,7 @@ final class ChildClass extends AbstractParentClass
-----
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
use Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Source\AbstractParentClass;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
final class LocalChildClass extends AbstractLocalParentClass
{
@ -33,7 +33,7 @@ abstract class AbstractLocalParentClass
-----
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
final class LocalChildClass extends AbstractLocalParentClass
{

View File

@ -1,6 +1,6 @@
<?php // https://github.com/rectorphp/rector/issues/812
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
final class CreditNoteRefGenerator extends AbstractAccountingRefGenerator
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
interface SniffInterface
{
@ -24,7 +24,7 @@ final class CoolSniffWithLocalinterface implements SniffInterface
-----
<?php
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\ParamAndReturnScalarTypehintsRector\Fixture;
interface SniffInterface
{

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Php\Tests\Rector\FunctionLike\Php4ConstructorRector\Wrong;
namespace Rector\Php\Tests\Rector\FunctionLike\Php4ConstructorRector\Fixture;
final class InNamespacePhp4ConstructorClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\List_\EmptyListRector\Wrong;
namespace Rector\Php\Tests\Rector\List_\EmptyListRector\Fixture;
class EmptyList
{
@ -19,7 +19,7 @@ class EmptyList
-----
<?php
namespace Rector\Php\Tests\Rector\List_\EmptyListRector\Wrong;
namespace Rector\Php\Tests\Rector\List_\EmptyListRector\Fixture;
class EmptyList
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\List_\ListSwapArrayOrderRector\Wrong;
namespace Rector\Php\Tests\Rector\List_\ListSwapArrayOrderRector\Fixture;
function listSwapArrayOrder()
{
@ -15,7 +15,7 @@ function listSwapArrayOrder()
-----
<?php
namespace Rector\Php\Tests\Rector\List_\ListSwapArrayOrderRector\Wrong;
namespace Rector\Php\Tests\Rector\List_\ListSwapArrayOrderRector\Fixture;
function listSwapArrayOrder()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong;
namespace Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture;
class ReservedObject
{
@ -31,31 +31,31 @@ $someObject = new ReservedObject;
-----
<?php
namespace Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong;
namespace Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture;
class SmartObject
{
}
class ChildObject extends \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject
class ChildObject extends \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject
{
}
$some = new ChildObject();
if ($some instanceof \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject) {
if ($some instanceof \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject) {
return;
}
is_subclass_of($some, \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject::class);
is_subclass_of($some, \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject::class);
is_a($some, \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject::class);
is_a($some, \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject::class);
function someFunction(\Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject $reservedObject): \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject {
function someFunction(\Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject $reservedObject): \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject {
return $reservedObject;
}
$someObject = new \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Wrong\SmartObject;
$someObject = new \Rector\Php\Tests\Rector\Name\ReservedObjectRector\Fixture\SmartObject;
?>

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;
@ -16,7 +16,7 @@ final class ClassWithClassProperty
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;
@ -21,7 +21,7 @@ final class ClassWithNullableProperty
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class ClassWithProperty
{
@ -40,7 +40,7 @@ final class ClassWithProperty
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class ClassWithProperty
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;
@ -16,7 +16,7 @@ final class ClassWithStaticProperty
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
use Rector\Php\Tests\Rector\Property\TypedPropertyRector\Source\AnotherClass;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class DefaultValues
{
@ -79,7 +79,7 @@ final class DefaultValues
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class DefaultValues
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class MatchTypes
{
@ -59,7 +59,7 @@ final class MatchTypes
-----
<?php
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Wrong;
namespace Rector\Php\Tests\Rector\Property\TypedPropertyRector\Fixture;
final class MatchTypes
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\String_\SensitiveHereNowDocRector\Wrong;
namespace Rector\Php\Tests\Rector\String_\SensitiveHereNowDocRector\Fixture;
function sensitiveHereNowDoc()
{
@ -24,7 +24,7 @@ END;
-----
<?php
namespace Rector\Php\Tests\Rector\String_\SensitiveHereNowDocRector\Wrong;
namespace Rector\Php\Tests\Rector\String_\SensitiveHereNowDocRector\Fixture;
function sensitiveHereNowDoc()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Php\Tests\Rector\TryCatch\MultiExceptionCatchRector\Wrong;
namespace Rector\Php\Tests\Rector\TryCatch\MultiExceptionCatchRector\Fixture;
function multiExceptionCatch()
{
@ -37,7 +37,7 @@ function multiExceptionCatch()
-----
<?php
namespace Rector\Php\Tests\Rector\TryCatch\MultiExceptionCatchRector\Wrong;
namespace Rector\Php\Tests\Rector\TryCatch\MultiExceptionCatchRector\Fixture;
function multiExceptionCatch()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class SomeVisitor extends \PhpParser\NodeVisitorAbstract
{
@ -14,7 +14,7 @@ class SomeVisitor extends \PhpParser\NodeVisitorAbstract
-----
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class SomeVisitor extends \PhpParser\NodeVisitorAbstract
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
use PhpParser\Node;
@ -28,7 +28,7 @@ class SomeVisitor2 implements \PhpParser\NodeVisitor
-----
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
use PhpParser\Node;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class MyAbstractVisitor extends \PhpParser\NodeVisitorAbstract
{
@ -19,7 +19,7 @@ class Visitor3 extends MyAbstractVisitor
-----
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class MyAbstractVisitor extends \PhpParser\NodeVisitorAbstract
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class Visitor4 extends \PhpParser\NodeVisitorAbstract
{
@ -14,7 +14,7 @@ class Visitor4 extends \PhpParser\NodeVisitorAbstract
-----
<?php
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\RemoveNodeRector\Fixture;
class Visitor4 extends \PhpParser\NodeVisitorAbstract
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\SetLineRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\SetLineRector\Fixture;
use PhpParser\Node\Scalar\String_;
@ -14,7 +14,7 @@ function setLine()
-----
<?php
namespace Rector\PhpParser\Tests\Rector\SetLineRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\SetLineRector\Fixture;
use PhpParser\Node\Scalar\String_;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\PhpParser\Tests\Rector\UseWithAliasRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\UseWithAliasRector\Fixture;
use PhpParser\Node\Stmt\UseUse;
@ -15,7 +15,7 @@ function useWithAlias()
-----
<?php
namespace Rector\PhpParser\Tests\Rector\UseWithAliasRector\Wrong;
namespace Rector\PhpParser\Tests\Rector\UseWithAliasRector\Fixture;
use PhpParser\Node\Stmt\UseUse;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Silverstripe\Tests\Rector\DefineConstantToStaticCallRector\Wrong;
namespace Rector\Silverstripe\Tests\Rector\DefineConstantToStaticCallRector\Fixture;
function defineConstantToStaticCall()
{
@ -13,7 +13,7 @@ function defineConstantToStaticCall()
-----
<?php
namespace Rector\Silverstripe\Tests\Rector\DefineConstantToStaticCallRector\Wrong;
namespace Rector\Silverstripe\Tests\Rector\DefineConstantToStaticCallRector\Fixture;
function defineConstantToStaticCall()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Sylius\Tests\Rector\Review\Wrong;
namespace Rector\Sylius\Tests\Rector\Review\Fixture;
class SomeClass
{
@ -19,7 +19,7 @@ class SomeClass
-----
<?php
namespace Rector\Sylius\Tests\Rector\Review\Wrong;
namespace Rector\Sylius\Tests\Rector\Review\Fixture;
class SomeClass
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Sylius\Tests\Rector\Review\Wrong;
namespace Rector\Sylius\Tests\Rector\Review\Fixture;
class SomeClass2
{
@ -19,7 +19,7 @@ class SomeClass2
-----
<?php
namespace Rector\Sylius\Tests\Rector\Review\Wrong;
namespace Rector\Sylius\Tests\Rector\Review\Fixture;
class SomeClass2
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\Console\ConsoleExceptionToErrorEventConstantRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Console\ConsoleExceptionToErrorEventConstantRector\Fixture;
final class SomeSubscriber
{
@ -17,7 +17,7 @@ final class SomeSubscriber
-----
<?php
namespace Rector\Symfony\Tests\Rector\Console\ConsoleExceptionToErrorEventConstantRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Console\ConsoleExceptionToErrorEventConstantRector\Fixture;
final class SomeSubscriber
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\SymfonyController;
@ -15,7 +15,7 @@ class AppController extends SymfonyController
-----
<?php
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\SymfonyController;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\AbstractSymfonyController;
@ -15,7 +15,7 @@ class AppController2 extends AbstractSymfonyController
-----
<?php
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\ActionSuffixRemoverRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\AbstractSymfonyController;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\SymfonyController;
use Symfony\Component\HttpFoundation\Request;
@ -17,7 +17,7 @@ class AppController extends SymfonyController
-----
<?php
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\SymfonyController;
use Symfony\Component\HttpFoundation\Request;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Fixture;
use Symfony\Component\HttpFoundation\Request;
@ -16,7 +16,7 @@ class AnyClass2
-----
<?php
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Wrong;
namespace Rector\Symfony\Tests\Rector\Controller\AddFlashRector\Fixture;
use Symfony\Component\HttpFoundation\Request;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector\Wrong;
namespace Rector\Symfony\Tests\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector\Fixture;
function containerBuilderCompilerEnvArgument()
{
@ -12,7 +12,7 @@ function containerBuilderCompilerEnvArgument()
-----
<?php
namespace Rector\Symfony\Tests\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector\Wrong;
namespace Rector\Symfony\Tests\Rector\DependencyInjection\ContainerBuilderCompileEnvArgumentRector\Fixture;
function containerBuilderCompilerEnvArgument()
{

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Form\OptionNameRector\Wrong;
namespace Rector\Symfony\Tests\Form\OptionNameRector\Fixture;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\AbstractType;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\FormBuilder;
@ -31,7 +31,7 @@ class RegistrationFormType extends AbstractType
-----
<?php
namespace Rector\Symfony\Tests\Form\OptionNameRector\Wrong;
namespace Rector\Symfony\Tests\Form\OptionNameRector\Fixture;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\AbstractType;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\FormBuilder;

View File

@ -1,6 +1,6 @@
<?php
namespace Rector\Symfony\Tests\Form\OptionNameRector\Wrong;
namespace Rector\Symfony\Tests\Form\OptionNameRector\Fixture;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\AbstractType;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\FormBuilder;
@ -20,7 +20,7 @@ class RegistrationFormType2 extends AbstractType
-----
<?php
namespace Rector\Symfony\Tests\Form\OptionNameRector\Wrong;
namespace Rector\Symfony\Tests\Form\OptionNameRector\Fixture;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\AbstractType;
use Rector\Symfony\Tests\Rector\Form\OptionNameRector\Source\FormBuilder;

View File

@ -1,6 +1,6 @@
<?php declare (strict_types=1);
namespace Rector\Symfony\Tests\Rector\HttpKernel\GetRequestRector\Wrong;
namespace Rector\Symfony\Tests\Rector\HttpKernel\GetRequestRector\Fixture;
use Rector\Symfony\Tests\Rector\Source\SymfonyController;

Some files were not shown because too many files have changed in this diff Show More