cii-text-analysis/vendor/wamania/php-stemmer/test/DutchTest.php

25 lines
440 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?php
namespace Wamania\Snowball\Tests;
use Wamania\Snowball\Dutch;
class DutchTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Dutch();
$snowballStem = $o->stem($word);
$this->assertEquals($stem, $snowballStem);
}
public function load()
{
return new CsvFileIterator('test/files/nl.txt');
}
}