addRule(new TargetSizeMinimum()); $violations = $scanner->scan('
'); $this->assertCount(1, $violations); $this->assertSame('WCAG_2_5_8_TARGET_SIZE', $violations[0]->ruleId); } public function testPassesAdequateTargetSize(): void { $scanner = new Scanner(); $scanner->addRule(new TargetSizeMinimum()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } public function testPassesElementsWithoutInlineSize(): void { $scanner = new Scanner(); $scanner->addRule(new TargetSizeMinimum()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } }