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