Skip to content

Commit

Permalink
Update ForbiddenPublicPropertySniffTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrommen authored Oct 21, 2024
1 parent 2e7bd13 commit fe55ee2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/Sniffs/Classes/ForbiddenPublicPropertySniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ public function testDefault(): void
self::assertSniffError($report, 6, ForbiddenPublicPropertySniff::CODE_FORBIDDEN_PUBLIC_PROPERTY);
}

public function testPromoted(): void
{
$report = self::checkFile(__DIR__ . '/data/forbiddenPublicProperty.php', [
'checkPromoted' => true,
]);

self::assertSniffError($report, 5, ForbiddenPublicPropertySniff::CODE_FORBIDDEN_PUBLIC_PROPERTY);
self::assertSniffError($report, 6, ForbiddenPublicPropertySniff::CODE_FORBIDDEN_PUBLIC_PROPERTY);
self::assertSniffError($report, 10, ForbiddenPublicPropertySniff::CODE_FORBIDDEN_PUBLIC_PROPERTY);
}

public function testReadonly(): void
{
$report = self::checkFile(__DIR__ . '/data/forbiddenPublicPropertyReadonly.php');
Expand Down

0 comments on commit fe55ee2

Please sign in to comment.