Skip to content

Commit 58a9130

Browse files
committed
add more tests
1 parent 50b38a8 commit 58a9130

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture;
4+
5+
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\SomeTrait;
6+
7+
final class RenameMethodWhichIsNotInTrait
8+
{
9+
use SomeTrait;
10+
11+
public function _otherMethod()
12+
{
13+
}
14+
}
15+
16+
?>
17+
-----
18+
<?php
19+
20+
namespace Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture;
21+
22+
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\SomeTrait;
23+
24+
final class RenameMethodWhichIsNotInTrait
25+
{
26+
use SomeTrait;
27+
28+
public function _otherMethod()
29+
{
30+
}
31+
}
32+
33+
?>

rules-tests/Renaming/Rector/MethodCall/RenameMethodRector/config/configured_rule.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
77
use Rector\Renaming\ValueObject\MethodCallRename;
88
use Rector\Renaming\ValueObject\MethodCallRenameWithArrayKey;
9+
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Fixture\RenameMethodWhichIsNotInTrait;
910
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\AbstractType;
1011
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\CustomType;
1112
use Rector\Tests\Renaming\Rector\MethodCall\RenameMethodRector\Source\DifferentInterface;

0 commit comments

Comments
 (0)