コード例 #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 プロジェクト: arnaud-hours/PlaygroundCore
 /**
  * wrapper function
  * @see Registry::register()
  */
 public static function register($code, $frequency, $callback, array $args = array())
 {
     Registry::register($code, $frequency, $callback, $args);
 }