:octocat: use a proper constant for data mode

This commit is contained in:
smiley
2023-03-16 11:20:33 +01:00
parent f13300c304
commit 3e0a4655aa
11 changed files with 40 additions and 35 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ final class ECITest extends DataInterfaceTestAbstract{
// get the filled bitbuffer
$bitBuffer = $this->QRData->getBitBuffer();
// read the first 4 bits
$this::assertSame($segments[0]->getDataMode(), $bitBuffer->read(4));
$this::assertSame($segments[0]::DATAMODE, $bitBuffer->read(4));
// decode the data
/** @noinspection PhpUndefinedMethodInspection */
$this::assertSame($this->testdata, $this->FQN::decodeSegment($bitBuffer, $options->version));