BitArrayTest.php
9 months ago
BitMatrixTest.php
9 months ago
BitUtilsTest.php
9 months ago
ErrorCorrectionLevelTest.php
9 months ago
FormatInformationTest.php
9 months ago
ModeTest.php
9 months ago
ReedSolomonCodecTest.php
9 months ago
VersionTest.php
9 months ago
ModeTest.php
20 lines
| 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 | } |
| 20 |