-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Defluent] Fix test namespace for InArgFluentChainMethodCallToStandal…
…oneMethodCallRector (#676)
- Loading branch information
1 parent
6ff9e78
commit bf038c6
Showing
20 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...l/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/Fixture/skip_non_arg.php.inc
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...uentMethodCallToStandaloneMethodCallRectorTest/Fixture/skip_non_fluent_new_in_arg.php.inc
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ethodCall/InArgChainFluentMethodCallToStandaloneMethodCallRectorTest/Source/DummyUser.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...dCall/InArgFluentChainMethodCallToStandaloneMethodCallRector/Fixture/skip_non_arg.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Defluent\Rector\MethodCall\InArgFluentChainMethodCallToStandaloneMethodCallRector\Fixture; | ||
|
||
use Rector\Tests\Defluent\Rector\MethodCall\InArgFluentChainMethodCallToStandaloneMethodCallRector\Source\FluentClass; | ||
|
||
class SkipNonArg | ||
{ | ||
public function someFunction() | ||
{ | ||
(new FluentClass())->otherFunction() | ||
->someFunction(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...entChainMethodCallToStandaloneMethodCallRector/Fixture/skip_non_fluent_new_in_arg.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Defluent\Rector\MethodCall\InArgFluentChainMethodCallToStandaloneMethodCallRector\Fixture; | ||
|
||
use Rector\Tests\Defluent\Rector\MethodCall\InArgFluentChainMethodCallToStandaloneMethodCallRector\Source\NonFluentClass; | ||
|
||
class SkipNonFluentNewInArg | ||
{ | ||
public function someFunction() | ||
{ | ||
$this->processFluentClass((new NonFluentClass())->number()); | ||
} | ||
|
||
public function processFluentClass(int $number) | ||
{ | ||
|
||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...RectorTest/Fixture/skip_self_self.php.inc → ...CallRector/Fixture/skip_self_self.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ctorTest/Fixture/skip_single_call.php.inc → ...llRector/Fixture/skip_single_call.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...or/MethodCall/InArgFluentChainMethodCallToStandaloneMethodCallRector/Source/DummyUser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Defluent\Rector\MethodCall\InArgFluentChainMethodCallToStandaloneMethodCallRector\Source; | ||
|
||
final class DummyUser | ||
{ | ||
public $id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters