addRule(new TableNestedBanned());
$violations = $scanner->scan('
');
$this->assertGreaterThanOrEqual(1, count($violations));
$this->assertSame('WCAG_1_3_1_TABLE_NESTED_BANNED', $violations[0]->ruleId);
}
public function testPassesSingleTable(): void
{
$scanner = new Scanner();
$scanner->addRule(new TableNestedBanned());
$violations = $scanner->scan('');
$this->assertCount(0, $violations);
}
}