addRule(new AutocompleteValid()); $violations = $scanner->scan('
'); $this->assertCount(1, $violations); $this->assertSame('WCAG_1_3_5_AUTOCOMPLETE', $violations[0]->ruleId); } public function testPassesWithAutocomplete(): void { $scanner = new Scanner(); $scanner->addRule(new AutocompleteValid()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } public function testSkipsNonPersonalInputs(): void { $scanner = new Scanner(); $scanner->addRule(new AutocompleteValid()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } }