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