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