예제 #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);
 }
예제 #2
0
파일: Boolean.php 프로젝트: dazarobbo/cola
 public function __toString()
 {
     return $this->_Bit->__toString();
 }