has_pecl_stem) { $this->assertEquals($stem, stem_english($word)); } else { $this->assertTrue(TRUE, 'No PECL stem library found, Aborting test.'); } } /** * Data provider for testStem(). * * @return array * Nested arrays of values to check: * - $word * - $stem */ public function stemDataProvider() { if ($this->has_pecl_stem) { return $this->retrieveStemWords(10000); } else { return array(array('', '')); } } }