Skip to content

Commit b6f27f0

Browse files
committed
[CodeQuality] Do not use FullyQualified on "self" on WithCallbackIdenticalToStandaloneAssertsRector
1 parent a083b2e commit b6f27f0

File tree

1 file changed

+22
-0
lines changed
  • rules-tests/CodeQuality/Rector/MethodCall/WithCallbackIdenticalToStandaloneAssertsRector/Fixture

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\MethodCall\WithCallbackIdenticalToStandaloneAssertsRector\Fixture;
6+
7+
use PHPUnit\Framework\TestCase;
8+
use Rector\PHPUnit\Tests\CodeQuality\Rector\MethodCall\WithCallbackIdenticalToStandaloneAssertsRector\Source\SomeClassWithMethodCall;
9+
10+
final class OnSelf extends TestCase
11+
{
12+
public function test()
13+
{
14+
$someMock = $this->getMockBuilder('AnyType')->getMock();
15+
16+
$someMock->expects($this->any())
17+
->method('trans')
18+
->with($this->callback(fn ($arg) => $arg instanceof self && $arg->isReady()));
19+
}
20+
}
21+
22+
?>

0 commit comments

Comments
 (0)