Files
yii2/tests/unit/framework/helpers/FallbackInflector.php
Alexander Makarov c3de3450a7 Fixes #3939: \yii\Inflector::slug() improvements:
- Added protected `\yii\Inflector::transliterate()` that could be replaced with custom translit implementation.
- Added proper tests for both intl-based slug and PHP fallback.
- Removed character maps for non-latin languages.
- Improved overall slug results.
- Added note about the fact that intl is required for non-latin languages to requirements checker.
2014-06-19 20:33:52 +04:00

21 lines
308 B
PHP

<?php
namespace yiiunit\framework\helpers;
use yii\helpers\BaseInflector;
/**
* Forces Inflector::slug to use PHP even if intl is available
*/
class FallbackInflector extends BaseInflector
{
/**
* @inheritdoc
*/
protected static function hasIntl()
{
return false;
}
}