示例#1
0
 /**
  * @covers Door::isOpen
  */
 public function testIsNotOpen()
 {
     $this->assertFalse($this->door->isOpen());
 }
示例#2
0
 /**
  * @covers Door::isOpen
  */
 public function testIsOpen()
 {
     $this->assertTrue($this->door->isOpen());
 }
示例#3
0
 /**
  * @covers Door::open
  * @covers ClosedDoorState::open
  * @uses   Door::isOpen
  */
 public function testCanBeOpened()
 {
     $this->door->open();
     $this->assertTrue($this->door->isOpen());
 }