addRule(new OptgroupLabel());
$violations = $scanner->scan('');
$this->assertCount(1, $violations);
$this->assertSame('WCAG_1_3_1_OPTGROUP_LABEL', $violations[0]->ruleId);
}
public function testPassesOptgroupWithLabel(): void
{
$scanner = new Scanner();
$scanner->addRule(new OptgroupLabel());
$violations = $scanner->scan('');
$this->assertCount(0, $violations);
}
}