cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Adapters/PspellAdapterTest.php

25 lines
610 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?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]);
}
}