/** * Make sure bit-flipping works as expected. */ public function testFlipBits() { $bitString = new BitString(5); $bitString->flipBit(2); $this->assertTrue($bitString->getBit(2)); $bitString->flipBit(2); $this->assertFalse($bitString->getBit(2)); }