Skip to content

Commit 956294f

Browse files
committed
[CodeQuality] Skip in static method on AssertFuncCallToPHPUnitAssertRector
1 parent 6b63e9b commit 956294f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
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\FuncCall\AssertFuncCallToPHPUnitAssertRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
final class SkipInStaticMethodTest extends TestCase
8+
{
9+
private static function getExceptionMessage(string $fqcn): string
10+
{
11+
$exception = new $fqcn();
12+
assert($exception instanceof \Exception);
13+
14+
return $exception->getMessage();
15+
}
16+
}
17+
18+
?>

0 commit comments

Comments
 (0)