Exemplo n.º 1
0
 /**
  * @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);
 }
Exemplo n.º 2
0
 public function __toString()
 {
     return $this->_Bit->__toString();
 }