コード例 #1
0
ファイル: BitTest.php プロジェクト: bweston92/PhpComputer
 /**
  * @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);
 }
コード例 #2
0
ファイル: Boolean.php プロジェクト: dazarobbo/cola
 public function __toString()
 {
     return $this->_Bit->__toString();
 }