addRule(new ListItemParent()); $violations = $scanner->scan('
  • Orphan Item
  • '); $this->assertCount(1, $violations); $this->assertSame('WCAG_1_3_1_LIST_ITEM_PARENT', $violations[0]->ruleId); } public function testPassesLiInsideUl(): void { $scanner = new Scanner(); $scanner->addRule(new ListItemParent()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } }