/** * @covers Edp\PhpComputer\Bit::on * @covers Edp\PhpComputer\Bit::off */ public function testTogglingBitTurnsItOnAndOff() { $bit = new Bit(); $bit->on(); $this->assertEquals($bit->state(), $bit::ON); $bit->off(); $this->assertEquals($bit->state(), $bit::OFF); }
public function __toString() { return $this->_Bit->__toString(); }