🛀 data mode rework

This commit is contained in:
codemasher
2020-11-21 02:43:14 +01:00
parent 4968063fb3
commit 9f5d0bc060
26 changed files with 853 additions and 789 deletions
+1 -11
View File
@@ -13,8 +13,6 @@
namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\Data\Byte;
use chillerlan\QRCode\Data\QRDataInterface;
use chillerlan\QRCode\QROptions;
/**
* Tests the Byte class
@@ -22,7 +20,7 @@ use chillerlan\QRCode\QROptions;
final class ByteTest extends DatainterfaceTestAbstract{
/** @internal */
protected string $testdata = '[¯\_(ツ)_/¯]';
protected array $testdata = [Byte::class, '[¯\_(ツ)_/¯]'];
/** @internal */
protected array $expected = [
@@ -41,12 +39,4 @@ final class ByteTest extends DatainterfaceTestAbstract{
21, 47, 250, 101
];
/**
* @inheritDoc
* @internal
*/
protected function getDataInterfaceInstance(QROptions $options):QRDataInterface{
return new Byte($options);
}
}