diff options
| author | Nils Adermann <naderman@naderman.de> | 2011-07-13 08:22:27 -0400 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 15:42:33 +0200 |
| commit | fabde989a2676c762f58e17b06772c9a3ba2f85e (patch) | |
| tree | e635e30f2fc1eb70bc1f2b2fcb5d3885bfb28524 /tests/cron/ext/testext | |
| parent | 14f1e581faa3b66e7689c55c1e9c0485c0872b1e (diff) | |
| download | forums-fabde989a2676c762f58e17b06772c9a3ba2f85e.tar forums-fabde989a2676c762f58e17b06772c9a3ba2f85e.tar.gz forums-fabde989a2676c762f58e17b06772c9a3ba2f85e.tar.bz2 forums-fabde989a2676c762f58e17b06772c9a3ba2f85e.tar.xz forums-fabde989a2676c762f58e17b06772c9a3ba2f85e.zip | |
[feature/extension-manager] Porting cron tasks over to the extension finder
PHPBB3-10323
Diffstat (limited to 'tests/cron/ext/testext')
| -rw-r--r-- | tests/cron/ext/testext/cron/dummy_task.php | 23 |
1 files changed, 23 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..06546ada05 --- /dev/null +++ b/tests/cron/ext/testext/cron/dummy_task.php @@ -0,0 +1,23 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2010 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License +* +*/ + +class phpbb_ext_testext_cron_dummy_task extends phpbb_cron_task_base +{ + public static $was_run = 0; + + public function run() + { + self::$was_run++; + } + + public function should_run() + { + return true; + } +} |
