cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Adapters/PspellAdapterTest.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

24 lines
610 B
PHP
Executable file

<?php
namespace Tests\TextAnalysis\Adapters;
use TextAnalysis\Adapters\PspellAdapter;
/**
* Description of PspellAdapterTest
*
* @author yooper
*/
class PspellAdapterTest extends \PHPUnit\Framework\TestCase
{
public function testSpelling()
{
if( getenv('SKIP_TEST')) {
return;
}
$adapter = new PspellAdapter();
$this->assertEquals('run', $adapter->suggest("runn")[0]);
$this->assertEquals('Cooper', $adapter->suggest("yooper")[0]);
$this->assertEquals('flute', $adapter->suggest("flute")[0]);
}
}