Пример #1
0
 /**
  * Restore our global settings after running tests
  */
 protected function tearDown()
 {
     global $w2Pconfig;
     parent::tearDown();
     // Restore old working days, day start and end
     $w2Pconfig['cal_working_days'] = $this->old_working_days;
     $w2Pconfig['cal_day_start'] = $this->old_cal_day_start;
     $w2Pconfig['cal_day_end'] = $this->old_cal_day_end;
     $w2Pconfig['daily_working_hours'] = $this->old_dwh;
 }
Пример #2
0
 /**
  * Tear Down function to be run after tests
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->obj, $this->post_data);
 }