Esempio n. 1
0
 public function testsetStandardArraysAttributes()
 {
     $scheduler = new Scheduler();
     //execute the method and verify related attributes
     $scheduler->setStandardArraysAttributes();
     $this->assertEquals(array('*', 1, 2, 3, 4, 5, 6, 0), $scheduler->dayInt);
     $this->assertEquals(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), $scheduler->monthsInt);
     $this->assertEquals(array('', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'), $scheduler->monthsLabel);
     $this->assertEquals(array('*', '/', '-', ','), $scheduler->metricsVar);
     $this->assertEquals(array(' every ', '', ' thru ', ' and '), $scheduler->metricsVal);
 }