Browse Source

test: don't count comment after class as another classy element (#7982)

Dariusz Rumiński 10 months ago
parent
commit
4dd5f97160
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/AutoReview/ProjectCodeTest.php

+ 1 - 1
tests/AutoReview/ProjectCodeTest.php

@@ -566,7 +566,7 @@ final class ProjectCodeTest extends TestCase
 
         $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));
     }
 
     /**