diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_inherited.php.inc similarity index 93% rename from rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this.php.inc rename to rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_inherited.php.inc index 03e14efa722..1f1d67e6043 100644 --- a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this.php.inc +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_inherited.php.inc @@ -15,7 +15,7 @@ class ThisA } } -class UseOfThis extends ThisA +class UseOfThisInherited extends ThisA { public function thisMethodUsesAThisThatThrowsAnException() { @@ -42,7 +42,7 @@ class ThisA } } -class UseOfThis extends ThisA +class UseOfThisInherited extends ThisA { /** * @throws \Rector\CodingStyle\Tests\Rector\Throw_\AnnotateThrowablesRector\Source\Exceptions\TheException diff --git a/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_same_class.php.inc b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_same_class.php.inc new file mode 100644 index 00000000000..7d19c749f59 --- /dev/null +++ b/rules/coding-style/tests/Rector/Throw_/AnnotateThrowablesRector/Fixture/use_of_this_same_class.php.inc @@ -0,0 +1,50 @@ +thisMethodThrowsAnException(); + } +} + +?> +----- +thisMethodThrowsAnException(); + } +} + +?>