Merge pull request #320 from mssimi/method-name-replacer-tests

MethodNameReplacerRector extra test
This commit is contained in:
Tomáš Votruba 2018-02-21 00:27:42 +01:00 committed by GitHub
commit 618cf53b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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'],
];
}

View File

@ -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);
}
}