/** * @expectedException \Exception * @expectedExceptionMessage Bit string length must be a multiple of 8 */ public function testInvalidFlipLength() { $math = EccFactory::getAdapter(); $u = new Uint8($math, 1); $u->flipBits('0'); }