コード例 #1
0
 public function testparseInterval()
 {
     $scheduler = new Scheduler();
     $scheduler->job_interval = '0::3::3::*::*';
     $expected = array('raw' => array('0', '3', '3', '*', '*'), 'hours' => '3:::0', 'months' => '*:::3');
     //execute the method and verify related attributes
     $scheduler->parseInterval();
     $this->assertTrue(is_array($scheduler->intervalParsed));
     $this->assertSame($expected, $scheduler->intervalParsed);
 }