public function Porter2Test3::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/ Porter2Test3.php, line 27 
Class
- Porter2Test3
- Tests the "PorterStemmer" implementation.
Namespace
Drupal\Tests\porterstemmer\UnitCode
public function testStem($word, $stem) {
  $this
    ->assertEquals($stem, Porter2::stem($word));
}