KanjiTest.php 674 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Class KanjiTest
  4. *
  5. * @created 24.11.2017
  6. * @author Smiley <smiley@chillerlan.net>
  7. * @copyright 2017 Smiley
  8. * @license MIT
  9. */
  10. namespace chillerlan\QRCodeTest\Data;
  11. use chillerlan\QRCode\Data\Kanji;
  12. /**
  13. * Tests the Kanji class
  14. */
  15. final class KanjiTest extends DatainterfaceTestAbstract{
  16. protected string $FQN = Kanji::class;
  17. protected string $testdata = '茗荷茗荷茗荷茗荷茗荷';
  18. /**
  19. * isKanji() should pass on Kanji/SJIS characters and fail on everything else
  20. */
  21. public function stringValidateProvider():array{
  22. return [
  23. ['茗荷', true],
  24. ['Ã', false],
  25. ['ABC', false],
  26. ['123', false],
  27. ];
  28. }
  29. }