<?php
namespace Wamania\Snowball\Tests;

use Wamania\Snowball\Stemmer\German;

class GermanTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider load
     */
    public function testStem($word, $stem)
    {
        $o = new German();

        $snowballStem = $o->stem($word);

        $this->assertEquals($stem, $snowballStem);
    }

    public function load()
    {
        return new CsvFileIterator('test/files/de.txt');
    }
}
