You are here

public function Porter2Test6::testStem in Porter-Stemmer 8

Test Porter2::stem() with a data provider method.

Uses the data provider method to test with a wide range of words/stems.

@dataProvider stemDataProvider

File

tests/src/Unit/Porter2Test6.php, line 27

Class

Porter2Test6
Tests the "PorterStemmer" implementation.

Namespace

Drupal\Tests\porterstemmer\Unit

Code

public function testStem($word, $stem) {
  $this
    ->assertEquals($stem, Porter2::stem($word));
}