Skip to content

Commit

Permalink
test: don't count comment after class as another classy element (#7982)
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed May 5, 2024
1 parent 0d262a7 commit 4dd5f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/AutoReview/ProjectCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public function testAllCodeContainSingleClassy(string $className): void

$classyEndIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_CURLY_BRACE, $nextTokenOfKind);

self::assertNull($tokens->getNextNonWhitespace($classyEndIndex), sprintf('File for "%s" should only contains a single classy.', $className));
self::assertNull($tokens->getNextMeaningfulToken($classyEndIndex), sprintf('File for "%s" should only contains a single classy.', $className));
}

/**
Expand Down

0 comments on commit 4dd5f97

Please sign in to comment.