PorterPeclBase.php in Porter-Stemmer 8
Namespace
Drupal\Tests\porterstemmer\UnitFile
tests/src/Unit/PorterPeclBase.phpView source
<?php
namespace Drupal\Tests\porterstemmer\Unit;
use Drupal\Tests\UnitTestCase;
/**
* Base methods for all PECL stem_english() tests.
*/
abstract class PorterPeclBase extends UnitTestCase {
use TestItemsTrait;
/**
* Modules to install.
*
* @var array
*/
protected static $modules = [
'porterstemmer',
];
/**
* Whether or not we have the PECL stem extension.
*
* @var bool
*/
public $hasPeclStem = FALSE;
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->hasPeclStem = extension_loaded('stem') && function_exists('stem_english');
}
}
Classes
Name![]() |
Description |
---|---|
PorterPeclBase | Base methods for all PECL stem_english() tests. |