From 590e6d5bd1bbb033937f86870609db05c9ec9a3f Mon Sep 17 00:00:00 2001 From: mssimi Date: Mon, 19 Feb 2018 21:02:42 +0100 Subject: [PATCH] add tests to method name replacer rector --- .../Correct/correct7.php.inc | 12 ++++++++++++ .../MethodNameReplacerRectorTest.php | 1 + .../MethodNameReplacerRector/Wrong/wrong7.php.inc | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/Rector/Dynamic/MethodNameReplacerRector/Correct/correct7.php.inc create mode 100644 tests/Rector/Dynamic/MethodNameReplacerRector/Wrong/wrong7.php.inc diff --git a/tests/Rector/Dynamic/MethodNameReplacerRector/Correct/correct7.php.inc b/tests/Rector/Dynamic/MethodNameReplacerRector/Correct/correct7.php.inc new file mode 100644 index 00000000000..e25df7c77d1 --- /dev/null +++ b/tests/Rector/Dynamic/MethodNameReplacerRector/Correct/correct7.php.inc @@ -0,0 +1,12 @@ +setDefaultOptions(); + + parent::configureOptions($resolver); + } +} \ No newline at end of file diff --git a/tests/Rector/Dynamic/MethodNameReplacerRector/MethodNameReplacerRectorTest.php b/tests/Rector/Dynamic/MethodNameReplacerRector/MethodNameReplacerRectorTest.php index b9df1209c69..e87ccd85d37 100644 --- a/tests/Rector/Dynamic/MethodNameReplacerRector/MethodNameReplacerRectorTest.php +++ b/tests/Rector/Dynamic/MethodNameReplacerRector/MethodNameReplacerRectorTest.php @@ -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'], ]; } diff --git a/tests/Rector/Dynamic/MethodNameReplacerRector/Wrong/wrong7.php.inc b/tests/Rector/Dynamic/MethodNameReplacerRector/Wrong/wrong7.php.inc new file mode 100644 index 00000000000..e54e417abb7 --- /dev/null +++ b/tests/Rector/Dynamic/MethodNameReplacerRector/Wrong/wrong7.php.inc @@ -0,0 +1,12 @@ +setDefaultOptions(); + + parent::setDefaultOptions($resolver); + } +} \ No newline at end of file