-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Phpunit] Prevent MethodCall instances of being processed (#5798)
Co-authored-by: Dominik Peters <d.peters@billiger-mietwagen.de>
- Loading branch information
Dominik Peters
and
Dominik Peters
authored
Mar 8, 2021
1 parent
896ca73
commit 5f70de5
Showing
6 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
...ests/Rector/MethodCall/AssertFalseStrposToContainsRector/Fixture/skip_method_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Rector\PHPUnit\Tests\Rector\MethodCall\AssertFalseStrposToContainsRector\Fixture; | ||
|
||
final class SkipMethodCall extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function test() | ||
{ | ||
$someObject = new Foo(); | ||
self::assertFalse($someObject->someMethod()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...punit/tests/Rector/MethodCall/AssertPropertyExistsRector/Fixture/skip_method_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Rector\PHPUnit\Tests\Rector\MethodCall\AssertPropertyExistsRector\Fixture; | ||
|
||
final class SkipMethodCall extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function test() | ||
{ | ||
$someObject = new Foo(); | ||
self::assertFalse($someObject->someMethod()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.../Rector/MethodCall/AssertTrueFalseToSpecificMethodRector/Fixture/skip_method_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Rector\PHPUnit\Tests\Rector\MethodCall\AssertTrueFalseToSpecificMethodRector\Fixture; | ||
|
||
final class SkipMethodCall extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function test() | ||
{ | ||
$someObject = new Foo(); | ||
self::assertFalse($someObject->someMethod()); | ||
} | ||
} |