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
@@ -0,0 +1,30 @@
<?php
namespace YakNet\AccessibilityConsole\Tests\Reporting;
use PHPUnit\Framework\TestCase;
use YakNet\AccessibilityConsole\Reporting\ExcelReportExporter;
class ExcelReportExporterTest extends TestCase
{
public function testExportsExcelBinaryContent(): void
{
$scanResult = [
'score' => 90,
'violations_count' => 1,
'violations' => [
[
'ruleId' => 'WCAG_3_1_1_LANG',
'description' => 'Missing lang attribute',
'htmlSnippet' => '<html>',
'suggestion' => 'Add lang="tr"',
'standard' => 'WCAG 2.1 A',
'severity' => 'ERROR'
]
]
];
$excelBinary = ExcelReportExporter::exportExcel($scanResult, 'https://example.com');
$this->assertNotEmpty($excelBinary);
}
}
@@ -0,0 +1,31 @@
<?php
namespace YakNet\AccessibilityConsole\Tests\Reporting;
use PHPUnit\Framework\TestCase;
use YakNet\AccessibilityConsole\Reporting\PdfReportGenerator;
class PdfReportGeneratorTest extends TestCase
{
public function testGeneratesPdfBinaryContent(): void
{
$scanResult = [
'score' => 95,
'violations_count' => 1,
'violations' => [
[
'ruleId' => 'WCAG_1_1_1_IMG_ALT',
'description' => 'Image missing alt text',
'htmlSnippet' => '<img src="test.jpg">',
'suggestion' => 'Add alt="Description"',
'standard' => 'WCAG 2.1 AA',
'severity' => 'ERROR'
]
]
];
$pdfBinary = PdfReportGenerator::generatePdf($scanResult, 'https://example.com');
$this->assertNotEmpty($pdfBinary);
$this->assertStringStartsWith('%PDF-', $pdfBinary);
}
}