addRule(new BannedSelectors());
$violations = $scanner->scan('
Obsolete tagDeprecated align
');
$this->assertCount(2, $violations);
$ruleIds = array_map(fn($v) => $v->ruleId, $violations);
$this->assertContains('BannedSelectors', $ruleIds);
}
public function testPassesSemanticHtml(): void
{
$scanner = new Scanner();
$scanner->addRule(new BannedSelectors());
$violations = $scanner->scan('Semantic structure
');
$this->assertCount(0, $violations);
}
}