Add another test case to MagicInterfacesRector, fix namespaces

This commit is contained in:
Tomas Votruba 2018-06-21 13:57:27 +02:00
parent 13ce5bb9d0
commit 7ed90af97d
7 changed files with 24 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<?php declare(strict_types=1);
use Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeInterface;
use Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeOldInterface;
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeInterface;
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface;
class SomeClass implements SomeInterface
{

View File

@ -0,0 +1,8 @@
<?php declare(strict_types=1);
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface;
class SomeClass implements Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeInterface
{
}

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\MagicDisclosure\MergeInterfacesRectorTest;
namespace Rector\Tests\Rector\Interface_\MergeInterfacesRector;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
@ -21,6 +21,7 @@ final class MergeInterfacesRectorTest extends AbstractRectorTestCase
public function provideWrongToFixedFiles(): Iterator
{
yield [__DIR__ . '/Wrong/wrong.php.inc', __DIR__ . '/Correct/correct.php.inc'];
yield [__DIR__ . '/Wrong/wrong2.php.inc', __DIR__ . '/Correct/correct2.php.inc'];
}
protected function provideConfig(): string

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source;
namespace Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source;
interface SomeInterface
{

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source;
namespace Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source;
interface SomeOldInterface
{

View File

@ -1,7 +1,7 @@
<?php declare(strict_types=1);
use Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeInterface;
use Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeOldInterface;
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeInterface;
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface;
class SomeClass implements SomeInterface, SomeOldInterface
{

View File

@ -0,0 +1,8 @@
<?php declare(strict_types=1);
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface;
class SomeClass implements SomeOldInterface
{
}