/** * Check that a bit string is constructed correctly, with * the correct length and all bits initially set to zero. */ public function testCreateBitString() { $bitString = new BitString(100); $this->assertEquals(100, $bitString->getLength()); for ($i = 0; $i < $bitString->getLength(); $i++) { $this->assertFalse($bitString->getBit($i)); } }