diff options
Diffstat (limited to 'tests/cron/ext/testext')
-rw-r--r-- | tests/cron/ext/testext/cron/dummy_task.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/cron/ext/testext/cron/dummy_task.php b/tests/cron/ext/testext/cron/dummy_task.php new file mode 100644 index 0000000000..8cdb6b09d5 --- /dev/null +++ b/tests/cron/ext/testext/cron/dummy_task.php @@ -0,0 +1,28 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2010 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +class phpbb_ext_testext_cron_dummy_task extends \phpbb\cron\task\base +{ + static public $was_run = 0; + + public function get_name() + { + return get_class($this); + } + + public function run() + { + self::$was_run++; + } + + public function should_run() + { + return true; + } +} |