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