-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Covert expectations mock invoke as well
- Loading branch information
1 parent
0a9f7c9
commit 68f76ce
Showing
4 changed files
with
44 additions
and
11 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
37 changes: 37 additions & 0 deletions
37
...tests/CodeQuality/Rector/Class_/PreferPHPUnitThisCallRector/Fixture/at_least_once.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,37 @@ | ||
<?php | ||
|
||
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class AtLeastOnce extends TestCase | ||
{ | ||
public function testMe() | ||
{ | ||
$matcher = self::once(); | ||
$matcher = self::atLeast(5); | ||
$matcher = self::never(); | ||
$matcher = self::atLeastOnce(); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector\Fixture; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
final class AtLeastOnce extends TestCase | ||
{ | ||
public function testMe() | ||
{ | ||
$matcher = $this->once(); | ||
$matcher = $this->atLeast(5); | ||
$matcher = $this->never(); | ||
$matcher = $this->atLeastOnce(); | ||
} | ||
} | ||
|
||
?> |
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