assertSame(0x0, ErrorCorrectionLevel::M()->getBits()); $this->assertSame(0x1, ErrorCorrectionLevel::L()->getBits()); $this->assertSame(0x2, ErrorCorrectionLevel::H()->getBits()); $this->assertSame(0x3, ErrorCorrectionLevel::Q()->getBits()); } public function testInvalidErrorCorrectionLevelThrowsException() : void { $this->expectException(OutOfBoundsException::class); ErrorCorrectionLevel::forBits(4); } }