diff --git a/tests/Unit/RuleSet/DeclarationBlockTest.php b/tests/Unit/RuleSet/DeclarationBlockTest.php index 9eaab956..7800ba73 100644 --- a/tests/Unit/RuleSet/DeclarationBlockTest.php +++ b/tests/Unit/RuleSet/DeclarationBlockTest.php @@ -376,32 +376,6 @@ public function parseConsumesToEofIfNoClosingBraceAfterInvalidSelector( self::assertTrue($parserState->isEnd()); } - /** - * @return array - */ - private static function getSelectorsAsStrings(DeclarationBlock $declarationBlock): array - { - return \array_map( - static function (Selector $selectorObject): string { - return $selectorObject->getSelector(); - }, - $declarationBlock->getSelectors() - ); - } - - /** - * @return list - */ - private static function getCommentsAsStrings(DeclarationBlock $declarationBlock): array - { - return \array_map( - static function (Comment $comment): string { - return $comment->getComment(); - }, - $declarationBlock->getComments() - ); - } - /** * @test */ @@ -560,4 +534,30 @@ public function setSelectorsThrowsExceptionWithInvalidSelector(string $selector) $subject->setSelectors($selector); } + + /** + * @return array + */ + private static function getSelectorsAsStrings(DeclarationBlock $declarationBlock): array + { + return \array_map( + static function (Selector $selectorObject): string { + return $selectorObject->getSelector(); + }, + $declarationBlock->getSelectors() + ); + } + + /** + * @return list + */ + private static function getCommentsAsStrings(DeclarationBlock $declarationBlock): array + { + return \array_map( + static function (Comment $comment): string { + return $comment->getComment(); + }, + $declarationBlock->getComments() + ); + } }