Skip to content

Commit 9dcb0e3

Browse files
committed
📦 Rename fixture to be clear about semantics
1 parent 1980c36 commit 9dcb0e3

File tree

2 files changed

+18
-37
lines changed

2 files changed

+18
-37
lines changed

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

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
final class IncludeExceptions extends TestCase
8+
{
9+
public function testMe()
10+
{
11+
// this calls should be preserved with $this, because methods are not static
12+
$this->expectException(\RuntimeException::class);
13+
$this->expectExceptionMessage('foo');
14+
$this->expectExceptionCode(123);
15+
}
16+
}
17+
18+
?>

0 commit comments

Comments
 (0)