示例#1
0
 /**
  * @covers Door::unlock
  * @covers AbstractDoorState::unlock
  * @expectedException IllegalStateTransitionException
  */
 public function testCannotBeUnlocked()
 {
     $this->door->unlock();
 }
示例#2
0
 /**
  * @covers Door::unlock
  * @covers LockedDoorState::unlock
  * @uses   Door::isClosed
  */
 public function testCanBeUnlocked()
 {
     $this->door->unlock();
     $this->assertTrue($this->door->isClosed());
 }