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