release: v3.1.0 premium smart core engines and 14 new accessibility rules

This commit is contained in:
Enes Yakıştır
2026-07-13 10:54:25 +03:00
parent 7f3bf3cb7d
commit 5292c2c865
67 changed files with 2639 additions and 29 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace YakNet\AccessibilityConsole\Tests\Core;
use PHPUnit\Framework\TestCase;
use YakNet\AccessibilityConsole\Core\Baseline\FuzzyBaselineMatcher;
class FuzzyBaselineMatcherTest extends TestCase
{
public function testFuzzyMatchIgnoresAttributeOrderAndSpaces(): void
{
$snippetA = '<img src="logo.png" alt="logo" class="banner">';
$snippetB = ' <img class="banner" src="logo.png" alt="logo"> ';
$this->assertTrue(FuzzyBaselineMatcher::match($snippetA, $snippetB));
}
public function testNormalizeLowercaseTags(): void
{
$html = '<IMG SRC="logo.png" ALT="logo">';
$norm = FuzzyBaselineMatcher::normalize($html);
$this->assertSame('<img alt="logo" src="logo.png">', $norm);
}
}