You are here

public function Porter2Test2::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/Porter2Test2.php, line 27

Class

Porter2Test2
Tests the "PorterStemmer" implementation.

Namespace

Drupal\Tests\porterstemmer\Unit

Code

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