3 namespace Drupal\Tests\porterstemmer\Unit;
5 use Drupal\Tests\UnitTestCase;
8 * Base methods for all PECL stem_english() tests.
10 abstract class PorterPeclBase extends UnitTestCase {
19 public static $modules = array('porterstemmer');
21 public $has_pecl_stem = FALSE;
26 protected function setUp() {
28 $this->has_pecl_stem = extension_loaded('stem') && function_exists('stem_english');