aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console/cron/tasks/simple.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/console/cron/tasks/simple.php')
-rw-r--r--tests/console/cron/tasks/simple.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/console/cron/tasks/simple.php b/tests/console/cron/tasks/simple.php
new file mode 100644
index 0000000000..be2a8a1d9d
--- /dev/null
+++ b/tests/console/cron/tasks/simple.php
@@ -0,0 +1,15 @@
+<?php
+
+class phpbb_cron_task_simple extends \phpbb\cron\task\base
+{
+ public function get_name()
+ {
+ return get_class($this);
+ }
+
+ public function run()
+ {
+ global $cron_num_exec;
+ $cron_num_exec++;
+ }
+}