Debian Codegraph @

test/Common/ModeTest.php

raw
1 <?php
2 declare(strict_types = 1);
3
4 namespace BaconQrCodeTest\Common;
5
6 use BaconQrCode\Common\Mode;
7 use PHPUnit\Framework\TestCase;
8
9 class ModeTest extends TestCase
10 {
11 public function testBitsMatchConstants() : void
12 {
13 $this->assertSame(0x0, Mode::TERMINATOR()->getBits());
14 $this->assertSame(0x1, Mode::NUMERIC()->getBits());
15 $this->assertSame(0x2, Mode::ALPHANUMERIC()->getBits());
16 $this->assertSame(0x4, Mode::BYTE()->getBits());
17 $this->assertSame(0x8, Mode::KANJI()->getBits());
18 }
19 }