UnicodeCommentExtraFieldTest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the nelexa/zip package.
  5. * (c) Ne-Lexa <https://github.com/Ne-Lexa/php-zip>
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace PhpZip\Tests\Extra\Fields;
  10. use PhpZip\Model\Extra\Fields\UnicodeCommentExtraField;
  11. /**
  12. * @internal
  13. *
  14. * @small
  15. */
  16. final class UnicodeCommentExtraFieldTest extends AbstractUnicodeExtraFieldTest
  17. {
  18. /**
  19. * {@inheritDoc}
  20. */
  21. protected function getUnicodeExtraFieldClassName()
  22. {
  23. return UnicodeCommentExtraField::class;
  24. }
  25. public function provideExtraField(): array
  26. {
  27. return [
  28. [
  29. 4293813303,
  30. 'комментарий',
  31. "\xAA\xAE\xAC\xAC\xA5\xAD\xE2\xA0\xE0\xA8\xA9",
  32. "\x017d\xEE\xFF\xD0\xBA\xD0\xBE\xD0\xBC\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82\xD0\xB0\xD1\x80\xD0\xB8\xD0\xB9",
  33. ],
  34. [
  35. 897024324,
  36. 'תגובה',
  37. "\x9A\x82\x85\x81\x84",
  38. "\x01D\x81w5\xD7\xAA\xD7\x92\xD7\x95\xD7\x91\xD7\x94",
  39. ],
  40. ];
  41. }
  42. }