mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
add test case for #1597
This commit is contained in:
parent
45676832c4
commit
4dbfe16b0e
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\FunctionLike\RemoveDeadReturnRector\Fixture;
|
||||
|
||||
class KeepCommentUnder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
return 'something'; // this comment explains stuff
|
||||
}
|
||||
}
|
@ -9,7 +9,11 @@ final class RemoveDeadReturnRectorTest extends AbstractRectorTestCase
|
||||
{
|
||||
public function test(): void
|
||||
{
|
||||
$this->doTestFiles([__DIR__ . '/Fixture/fixture.php.inc', __DIR__ . '/Fixture/keep.php.inc']);
|
||||
$this->doTestFiles([
|
||||
__DIR__ . '/Fixture/fixture.php.inc',
|
||||
__DIR__ . '/Fixture/keep.php.inc',
|
||||
__DIR__ . '/Fixture/keep_comment_under.php.inc',
|
||||
]);
|
||||
}
|
||||
|
||||
protected function getRectorClass(): string
|
||||
|
Loading…
x
Reference in New Issue
Block a user