-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodingStyle] Skip PreferThisOrSelfMethodCallRector to self when clas…
…s method is not static (#779) * PreferThisOrSelfMethodCallRector should only convert static methods * Closes #778 * add fixture for assertEquals use self * assert equals already has fixture Co-authored-by: Brandon Olivares <programmer2188@gmail.com>
- Loading branch information
1 parent
b2c44bf
commit e509007
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...Style/Rector/MethodCall/PreferThisOrSelfMethodCallRector/Fixture/skip_create_mock.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,15 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\MethodCall\PreferThisOrSelfMethodCallRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class SkipCreateMock extends TestCase | ||
{ | ||
public function test() | ||
{ | ||
$this->createMock(\Foo::class); | ||
} | ||
} | ||
|
||
?> |
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