Skip to content

Commit

Permalink
Add UT
Browse files Browse the repository at this point in the history
  • Loading branch information
niji-mneute committed Sep 6, 2024
1 parent 7d1817a commit f96c644
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace Rector\SwissKnife\Tests\NeedsFinalizeAnalyzer\Fixture;

readonly class NonFinalReadonlyClass
{
}
1 change: 1 addition & 0 deletions tests/NeedsFinalizeAnalyzer/NeedsFinalizeAnalyzerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public static function provideData(): iterable
yield [__DIR__ . '/Fixture/anonymous_class.php.inc', false];

yield [__DIR__ . '/Fixture/non_final_class.php.inc', true];
yield [__DIR__ . '/Fixture/non_final_readonly_class.php.inc', true];
}
}

0 comments on commit f96c644

Please sign in to comment.