ByteTest.php 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Class ByteTest
  4. *
  5. * @filesource ByteTest.php
  6. * @created 24.11.2017
  7. * @package chillerlan\QRCodeTest\Data
  8. * @author Smiley <smiley@chillerlan.net>
  9. * @copyright 2017 Smiley
  10. * @license MIT
  11. */
  12. namespace chillerlan\QRCodeTest\Data;
  13. use chillerlan\QRCode\Data\Byte;
  14. /**
  15. * Tests the Byte class
  16. */
  17. final class ByteTest extends DatainterfaceTestAbstract{
  18. /** @internal */
  19. protected array $testdata = [Byte::class, '[¯\_(ツ)_/¯]'];
  20. /** @internal */
  21. protected array $expected = [
  22. 64, 245, 188, 42, 245, 197, 242, 142,
  23. 56, 56, 66, 149, 242, 252, 42, 245,
  24. 208, 236, 17, 236, 17, 236, 17, 236,
  25. 17, 236, 17, 236, 17, 236, 17, 236,
  26. 17, 236, 17, 236, 17, 236, 17, 236,
  27. 17, 236, 17, 236, 17, 236, 17, 236,
  28. 17, 236, 17, 236, 17, 236, 17, 236,
  29. 17, 236, 17, 236, 17, 236, 17, 236,
  30. 17, 236, 17, 236, 17, 236, 17, 236,
  31. 17, 236, 17, 236, 17, 236, 17, 236,
  32. 79, 89, 226, 48, 209, 89, 151, 1,
  33. 12, 73, 42, 163, 11, 34, 255, 205,
  34. 21, 47, 250, 101
  35. ];
  36. }