Skip to content

Commit

Permalink
FinalizeClasses: add failing test for @Final annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnutix committed Apr 4, 2024
1 parent 64a14f8 commit 8252798
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Rector\SwissKnife\Tests\NeedsFinalizeAnalyzer;

/**
* @final
*/
class FinalClassViaAnnotation
{
}
1 change: 1 addition & 0 deletions tests/NeedsFinalizeAnalyzer/NeedsFinalizeAnalyzerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function provideData(): iterable
yield [__DIR__ . '/Fixture/final_class.php.inc', false];
yield [__DIR__ . '/Fixture/abstract_class.php.inc', false];
yield [__DIR__ . '/Fixture/anonymous_class.php.inc', false];
yield [__DIR__ . '/Fixture/final_class_via_annotation.php.inc', false];

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

0 comments on commit 8252798

Please sign in to comment.