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);
 }
Example #2
0
 /**
  * wrapper function
  * @see Registry::register()
  */
 public static function register($code, $frequency, $callback, array $args = array())
 {
     Registry::register($code, $frequency, $callback, $args);
 }