mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 12:14:02 +01:00
Merge pull request #320 from mssimi/method-name-replacer-tests
MethodNameReplacerRector extra test
This commit is contained in:
commit
618cf53b3c
@ -0,0 +1,12 @@
|
||||
<?php declare (strict_types=1);
|
||||
|
||||
class MyType extends \Symfony\Component\Form\AbstractType
|
||||
{
|
||||
public function configureOptions(SomeResolver $resolver)
|
||||
{
|
||||
$something = new Something();
|
||||
$something->setDefaultOptions();
|
||||
|
||||
parent::configureOptions($resolver);
|
||||
}
|
||||
}
|
@ -27,6 +27,7 @@ final class MethodNameReplacerRectorTest extends AbstractConfigurableRectorTestC
|
||||
[__DIR__ . '/Wrong/wrong4.php.inc', __DIR__ . '/Correct/correct4.php.inc'],
|
||||
[__DIR__ . '/Wrong/wrong5.php.inc', __DIR__ . '/Correct/correct5.php.inc'],
|
||||
[__DIR__ . '/Wrong/wrong6.php.inc', __DIR__ . '/Correct/correct6.php.inc'],
|
||||
[__DIR__ . '/Wrong/wrong7.php.inc', __DIR__ . '/Correct/correct7.php.inc'],
|
||||
[__DIR__ . '/Wrong/SomeClass.php', __DIR__ . '/Correct/SomeClass.php'],
|
||||
];
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
<?php declare (strict_types=1);
|
||||
|
||||
class MyType extends \Symfony\Component\Form\AbstractType
|
||||
{
|
||||
public function setDefaultOptions(SomeResolver $resolver)
|
||||
{
|
||||
$something = new Something();
|
||||
$something->setDefaultOptions();
|
||||
|
||||
parent::setDefaultOptions($resolver);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user