예제 #1
0
 public function testCronRegistry()
 {
     Registry::register('test', '* * * * *', array($this, 'dummy'), array());
     $expectedCronRegistry = array('test' => array('frequency' => '* * * * *', 'callback' => array($this, 'dummy'), 'args' => array()));
     $cronRegistry = Registry::getCronRegistry();
     $this->assertSame($expectedCronRegistry, $cronRegistry);
 }
예제 #2
0
파일: Cron.php 프로젝트: rickhewes/zf2-cron
 /**
  * wrapper function
  * @see Registry::register()
  */
 public static function register($code, $frequency, $callback, array $args = array())
 {
     Registry::register($code, $frequency, $callback, $args);
 }