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
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace YakNet\AccessibilityConsole\Tests\Rules;
use PHPUnit\Framework\TestCase;
use YakNet\AccessibilityConsole\Core\Scanner;
use YakNet\AccessibilityConsole\Rules\TableNestedBanned;
class TableNestedBannedTest extends TestCase
{
public function testFlagsNestedTable(): void
{
$scanner = new Scanner();
$scanner->addRule(new TableNestedBanned());
$violations = $scanner->scan('<table><tr><td><table><tr><td>Nested table</td></tr></table></td></tr></table>');
$this->assertGreaterThanOrEqual(1, count($violations));
$this->assertSame('WCAG_1_3_1_TABLE_NESTED_BANNED', $violations[0]->ruleId);
}
public function testPassesSingleTable(): void
{
$scanner = new Scanner();
$scanner->addRule(new TableNestedBanned());
$violations = $scanner->scan('<table><tr><td>Single table data</td></tr></table>');
$this->assertCount(0, $violations);
}
}