mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
make code local for PerNodeTypeResolverTest
This commit is contained in:
parent
44df2e5959
commit
705cc5335a
@ -32,6 +32,9 @@ final class AssignTypeResolverTest extends AbstractNodeTypeResolverTest
|
||||
[__DIR__ . '/Source/New.php.inc', 0, ['AnotherClassWithParentInterface', 'ParentInterface']],
|
||||
[__DIR__ . '/Source/New.php.inc', 1, ['AnotherClassWithParentInterface', 'ParentInterface']],
|
||||
|
||||
# method call
|
||||
[__DIR__ . '/Source/MethodCall.php.inc', 1, ['AnotherClass']],
|
||||
|
||||
# assign of "new <name>"
|
||||
[__DIR__ . '/Source/MethodCall.php.inc', 0, ['SomeClass', 'SomeParentClass']],
|
||||
[__DIR__ . '/Source/MethodCall.php.inc', 2, ['SomeClass', 'SomeParentClass']],
|
||||
@ -49,8 +52,6 @@ final class AssignTypeResolverTest extends AbstractNodeTypeResolverTest
|
||||
{
|
||||
return [
|
||||
|
||||
# method call
|
||||
[__DIR__ . '/Source/MethodCall.php.inc', 1, ['Nette\DI\Container']],
|
||||
# method call on class constant
|
||||
[__DIR__ . '/Source/ClassConstant.php.inc', 0, ['Nette\Config\Configurator', 'Nette\Object']],
|
||||
[__DIR__ . '/Source/ClassConstant.php.inc', 2, ['Nette\Config\Configurator', 'Nette\Object']],
|
||||
|
Loading…
x
Reference in New Issue
Block a user