Skip to content

Commit 157258e

Browse files
committed
improve DecorateWillReturnMapWithExpectsMockRector edge cases
1 parent 7a914ca commit 157258e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Expression\DecorateWillReturnMapWithExpectsMockRector\Fixture;
6+
7+
final class SkipAlreadyDefined extends \PHPUnit\Framework\TestCase
8+
{
9+
public function test()
10+
{
11+
$someMock = $this->createMock(\stdClass::class);
12+
$someMock
13+
->expects($this->exactly(2))
14+
->method('some')->willReturnMap([1, 2]);
15+
}
16+
}

0 commit comments

Comments
 (0)