Skip to content

Commit

Permalink
SlevomatCodingStandard.Namespaces.UnusedUses: More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Mar 9, 2024
1 parent 8d0f603 commit 9b37298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Sniffs/Namespaces/UnusedUsesSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function testUnusedUse(): void
self::assertNoSniffError($report, 29);

self::assertNoSniffError($report, 30);
self::assertNoSniffError($report, 31);

self::assertNoSniffError($report, 91);
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Sniffs/Namespaces/data/unusedUses.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use ReferenceClass;
use ClassWithStaticVariable;
use ClassWithConstant;
use function Psl\Type\null;

class TestClass implements FirstInterface, SecondInterface
{
Expand Down Expand Up @@ -67,3 +68,5 @@ protected function withUnion(UnionType|UnionType2|bool $union)
}

}

null();

0 comments on commit 9b37298

Please sign in to comment.