Browse Source

chore: RuleSetsTest - assert that Fixer is configurable (#7961)

Dariusz Rumiński 10 months ago
parent
commit
5c6b9a4c05
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/RuleSet/RuleSetsTest.php

+ 2 - 0
tests/RuleSet/RuleSetsTest.php

@@ -189,6 +189,8 @@ Integration of %s.
 
         $fixer = self::getFixerByName($ruleName);
 
+        self::assertInstanceOf(ConfigurableFixerInterface::class, $fixer, sprintf('The fixer "%s" shall be configurable.', $fixer->getName()));
+
         foreach ($fixer->getConfigurationDefinition()->getOptions() as $option) {
             if ('target' === $option->getName()) {
                 $allowedVersionsForFixer = array_diff($option->getAllowedValues(), [PhpUnitTargetVersion::VERSION_NEWEST]);