aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console/cron/tasks
diff options
context:
space:
mode:
authorLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 18:02:30 +0200
committerLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 18:02:30 +0200
commit0d839cbefc19247fd2b4c1132b91083bf0983305 (patch)
tree3f283bb435694940d52710e4aad568463239b600 /tests/console/cron/tasks
parent5fca30813809c4fbbcad0ffc12903eda6279b88b (diff)
downloadforums-0d839cbefc19247fd2b4c1132b91083bf0983305.tar
forums-0d839cbefc19247fd2b4c1132b91083bf0983305.tar.gz
forums-0d839cbefc19247fd2b4c1132b91083bf0983305.tar.bz2
forums-0d839cbefc19247fd2b4c1132b91083bf0983305.tar.xz
forums-0d839cbefc19247fd2b4c1132b91083bf0983305.zip
[ticket/12597] Modification of return statuses and of test files
PHPBB3-12597
Diffstat (limited to 'tests/console/cron/tasks')
-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;
}
}