/** * @covers Door::isOpen */ public function testIsNotOpen() { $this->assertFalse($this->door->isOpen()); }
/** * @covers Door::isOpen */ public function testIsOpen() { $this->assertTrue($this->door->isOpen()); }
/** * @covers Door::open * @covers ClosedDoorState::open * @uses Door::isOpen */ public function testCanBeOpened() { $this->door->open(); $this->assertTrue($this->door->isOpen()); }