use Drupal\Component\Transliteration\PhpTransliteration;
use Drupal\Component\Utility\Random;
-use Drupal\Tests\UnitTestCase;
use org\bovigo\vfs\vfsStream;
+use PHPUnit\Framework\TestCase;
/**
* Tests Transliteration component functionality.
*
* @coversDefaultClass \Drupal\Component\Transliteration\PhpTransliteration
*/
-class PhpTransliterationTest extends UnitTestCase {
+class PhpTransliterationTest extends TestCase {
/**
* Tests the PhpTransliteration::removeDiacritics() function.
]);
$transliteration = new PhpTransliteration(vfsStream::url('transliteration/dir'));
$transliterated = $transliteration->transliterate(chr(0xC2) . chr(0x82), '../index');
- $this->assertSame($transliterated, 'safe');
+ $this->assertSame('safe', $transliterated);
}
}