release: v3.2.0 - Enterprise Edition with Live Web Dashboard, PDF/Excel Exporters, Framework Stubs & 110 WCAG Rules

This commit is contained in:
Enes Yakıştır
2026-07-31 00:13:31 +03:00
parent 58b1618d96
commit 73fbf485d2
36 changed files with 1420 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace YakNet\AccessibilityConsole\Tests\AutoFix;
use PHPUnit\Framework\TestCase;
use YakNet\AccessibilityConsole\AutoFix\HtmlRepairEngine;
class HtmlRepairEngineTest extends TestCase
{
public function testRepairsMissingLangAndSvg(): void
{
$html = '<html><body><svg class="icon"></svg><img src="test.png"></body></html>';
$result = HtmlRepairEngine::autoRepair($html);
$this->assertStringContainsString('<html lang="tr"', $result['repaired_html']);
$this->assertStringContainsString('<svg aria-hidden="true"', $result['repaired_html']);
$this->assertStringContainsString('<img alt=""', $result['repaired_html']);
$this->assertCount(3, $result['fixes_applied']);
}
}