summaryrefslogtreecommitdiff
path: root/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php')
-rw-r--r--vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php22
1 files changed, 18 insertions, 4 deletions
diff --git a/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php b/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php
index cbfe1fab2..295603200 100644
--- a/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php
+++ b/vendor/chillerlan/php-qrcode/tests/Data/ByteTest.php
@@ -13,12 +13,19 @@
namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\Data\Byte;
+use chillerlan\QRCode\Data\QRDataInterface;
+use chillerlan\QRCode\QROptions;
-class ByteTest extends DatainterfaceTestAbstract{
+/**
+ * Tests the Byte class
+ */
+final class ByteTest extends DatainterfaceTestAbstract{
+
+ /** @internal */
+ protected string $testdata = '[¯\_(ツ)_/¯]';
- protected $FQCN = Byte::class;
- protected $testdata = '[¯\_(ツ)_/¯]';
- protected $expected = [
+ /** @internal */
+ protected array $expected = [
64, 245, 188, 42, 245, 197, 242, 142,
56, 56, 66, 149, 242, 252, 42, 245,
208, 236, 17, 236, 17, 236, 17, 236,
@@ -34,5 +41,12 @@ class ByteTest extends DatainterfaceTestAbstract{
21, 47, 250, 101
];
+ /**
+ * @inheritDoc
+ * @internal
+ */
+ protected function getDataInterfaceInstance(QROptions $options):QRDataInterface{
+ return new Byte($options);
+ }
}