🛀 QRDataModeInterface: validate data on init, test cleanup

This commit is contained in:
codemasher
2021-11-28 18:25:06 +01:00
parent 3d563bfcc0
commit 48b6c21090
12 changed files with 71 additions and 203 deletions
+8 -18
View File
@@ -17,24 +17,14 @@ use chillerlan\QRCode\Data\Byte;
*/
final class ByteTest extends DatainterfaceTestAbstract{
/** @internal */
protected array $testdata = [Byte::class, '[¯\_(ツ)_/¯]'];
protected string $FQN = Byte::class;
protected string $testdata = '[¯\_(ツ)_/¯]';
/** @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,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
17, 236, 17, 236, 17, 236, 17, 236,
79, 89, 226, 48, 209, 89, 151, 1,
12, 73, 42, 163, 11, 34, 255, 205,
21, 47, 250, 101
];
/**
* @inheritDoc
*/
public function testInvalidDataException():void{
$this->markTestSkipped('N/A');
}
}