: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
@@ -132,7 +132,7 @@ abstract class DataInterfaceTestAbstract extends TestCase{
// get the filled bitbuffer
$bitBuffer = $this->QRData->getBitBuffer();
// read the first 4 bits
$this::assertSame($datamodeInterface->getDataMode(), $bitBuffer->read(4));
$this::assertSame($datamodeInterface::DATAMODE, $bitBuffer->read(4));
// decode the data
/** @noinspection PhpUndefinedMethodInspection */
$this::assertSame($this->testdata, $this->FQN::decodeSegment($bitBuffer, $options->version));