Skip to content

Commit 1980c36

Browse files
committed
📖 [9138] Explain fixture behavior with comment
rectorphp/rector#9138
1 parent 3251eb7 commit 1980c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rules-tests/CodeQuality/Rector/Class_/PreferPHPUnitSelfCallRector/Fixture/include_exceptions.php.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ final class IncludeExceptions extends TestCase
88
{
99
public function testMe()
1010
{
11+
// this calls should be preserved with $this, because methods are not static
1112
$this->expectException(\RuntimeException::class);
1213
$this->expectExceptionMessage('foo');
1314
$this->expectExceptionCode(123);
@@ -26,6 +27,7 @@ final class IncludeExceptions extends TestCase
2627
{
2728
public function testMe()
2829
{
30+
// this calls should be preserved with $this, because methods are not static
2931
$this->expectException(\RuntimeException::class);
3032
$this->expectExceptionMessage('foo');
3133
$this->expectExceptionCode(123);

0 commit comments

Comments
 (0)