mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-16 13:33:13 +02:00
Add another test case to MagicInterfacesRector, fix namespaces
This commit is contained in:
parent
13ce5bb9d0
commit
7ed90af97d
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
||||
}
|
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -0,0 +1,8 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface;
|
||||
|
||||
class SomeClass implements SomeOldInterface
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user