2
0

UnicodePathExtraFieldTest.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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\UnicodePathExtraField;
  11. /**
  12. * Class UnicodePathExtraFieldTest.
  13. *
  14. * @internal
  15. *
  16. * @small
  17. */
  18. final class UnicodePathExtraFieldTest extends AbstractUnicodeExtraFieldTest
  19. {
  20. /**
  21. * {@inheritDoc}
  22. */
  23. protected function getUnicodeExtraFieldClassName()
  24. {
  25. return UnicodePathExtraField::class;
  26. }
  27. public function provideExtraField(): array
  28. {
  29. return [
  30. [
  31. 2728523760,
  32. 'txt\מבחן עברי.txt',
  33. "txt/\x8E\x81\x87\x8F \x92\x81\x98\x89.txt",
  34. "\x01\xF0\xF7\xA1\xA2txt\\\xD7\x9E\xD7\x91\xD7\x97\xD7\x9F \xD7\xA2\xD7\x91\xD7\xA8\xD7\x99.txt",
  35. ],
  36. [
  37. 953311492,
  38. 'ä\ü.txt',
  39. "\x84/\x81.txt",
  40. "\x01\x04a\xD28\xC3\xA4\\\xC3\xBC.txt",
  41. ],
  42. [
  43. 2965532848,
  44. 'Ölfässer.txt',
  45. "\x99lf\x84sser.txt",
  46. "\x01\xB0p\xC2\xB0\xC3\x96lf\xC3\xA4sser.txt",
  47. ],
  48. [
  49. 3434671236,
  50. 'Как заработать в интернете.mp4',
  51. "\x8A\xA0\xAA \xA7\xA0\xE0\xA0\xA1\xAE\xE2\xA0\xE2\xEC \xA2 \xA8\xAD\xE2\xA5\xE0\xAD\xA5\xE2\xA5.mp4",
  52. "\x01\x84\xEC\xB8\xCC\xD0\x9A\xD0\xB0\xD0\xBA \xD0\xB7\xD0\xB0\xD1\x80\xD0\xB0\xD0\xB1\xD0\xBE\xD1\x82\xD0\xB0\xD1\x82\xD1\x8C \xD0\xB2 \xD0\xB8\xD0\xBD\xD1\x82\xD0\xB5\xD1\x80\xD0\xBD\xD0\xB5\xD1\x82\xD0\xB5.mp4",
  53. ],
  54. ];
  55. }
  56. }