public function testAddingWater()
 {
     $this->initializeCoffee();
     $this->coffee->useWater(0.5);
     $this->coffee->addWater(0.5);
     $this->assertEquals(1, $this->coffee > getWater());
 }
 public function __construct()
 {
     $time = time() - getLastLogin($_SESSION["user_id"]);
     $this->buildings = getBuildings($_SESSION["user_id"]);
     $this->buildingsworkers = getBuildingsWorkers($_SESSION["user_id"]);
     $this->userid = $_SESSION["user_id"];
     $this->population = getPopulation($_SESSION["user_id"]);
     $this->food = getFood($_SESSION["user_id"]) * ($this->getFoodProduction() * $time);
     $this->water = getWater($_SESSION["user_id"]) * ($this->getWaterProduction() * $time);
 }