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.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/console/cron/tasks/simple.php b/tests/console/cron/tasks/simple.php
index be2a8a1d9d..15194caaf7 100644
--- a/tests/console/cron/tasks/simple.php
+++ b/tests/console/cron/tasks/simple.php
@@ -2,6 +2,14 @@
class phpbb_cron_task_simple extends \phpbb\cron\task\base
{
+ public $executed;
+
+ public function __construct()
+ {
+ $executed = false;
+ parent::__construct();
+ }
+
public function get_name()
{
return get_class($this);
@@ -9,7 +17,6 @@ class phpbb_cron_task_simple extends \phpbb\cron\task\base
public function run()
{
- global $cron_num_exec;
- $cron_num_exec++;
+ $this->executed = true;
}
}