Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Transliteration / PhpTransliterationTest.php
index 243fcfd20cdd735feb5e7ea234c6728e693bdd55..924f3e93000b8799b7054da9574578f052cf0604 100644 (file)
@@ -4,8 +4,8 @@ namespace Drupal\Tests\Component\Transliteration;
 
 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.
@@ -14,7 +14,7 @@ use org\bovigo\vfs\vfsStream;
  *
  * @coversDefaultClass \Drupal\Component\Transliteration\PhpTransliteration
  */
-class PhpTransliterationTest extends UnitTestCase {
+class PhpTransliterationTest extends TestCase {
 
   /**
    * Tests the PhpTransliteration::removeDiacritics() function.
@@ -106,7 +106,7 @@ class PhpTransliterationTest extends UnitTestCase {
     // Make some strings with two, three, and four-byte characters for testing.
     // Note that the 3-byte character is overridden by the 'kg' language.
     $two_byte = 'Ä Ö Ü Å Ø äöüåøhello';
-    // This is a Cyrrillic character that looks something like a u. See
+    // This is a Cyrillic character that looks something like a "u". See
     // http://www.unicode.org/charts/PDF/U0400.pdf
     $three_byte = html_entity_decode('ц', ENT_NOQUOTES, 'UTF-8');
     // This is a Canadian Aboriginal character like a triangle. See
@@ -182,7 +182,7 @@ class PhpTransliterationTest extends UnitTestCase {
     ]);
     $transliteration = new PhpTransliteration(vfsStream::url('transliteration/dir'));
     $transliterated = $transliteration->transliterate(chr(0xC2) . chr(0x82), '../index');
-    $this->assertSame($transliterated, 'safe');
+    $this->assertSame('safe', $transliterated);
   }
 
 }