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