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