addRule(new BlinkTagBanned()); $violations = $scanner->scan('
Blinking text!
'); $this->assertCount(1, $violations); $this->assertSame('WCAG_2_2_2_BLINK', $violations[0]->ruleId); } public function testPassesNormalSpan(): void { $scanner = new Scanner(); $scanner->addRule(new BlinkTagBanned()); $violations = $scanner->scan('
Normal text
'); $this->assertCount(0, $violations); } }