Hello'
);
$result = $healer->heal($violation);
$this->assertNotNull($result);
$this->assertStringContainsString('FIX: Hello', $result);
}
public function testHealsAutofocusAttribute(): void
{
$healer = new LocalHealer();
$violation = new Violation(
ruleId: 'WCAG_2_4_3_AUTOFOCUS',
message: 'Banned autofocus attribute.',
severity: Severity::WARNING,
standard: WCAGStandard::A,
htmlSnippet: ''
);
$result = $healer->heal($violation);
$this->assertNotNull($result);
$this->assertStringContainsString('FIX: ', $result);
}
}