From 0d839cbefc19247fd2b4c1132b91083bf0983305 Mon Sep 17 00:00:00 2001 From: LEZY Thomas Date: Wed, 28 May 2014 18:02:30 +0200 Subject: [ticket/12597] Modification of return statuses and of test files PHPBB3-12597 --- tests/console/cron/tasks/simple.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tests/console/cron/tasks') 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; } } -- cgit v1.2.1