aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console/cron/tasks
diff options
context:
space:
mode:
authorLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 10:13:37 +0200
committerLEZY Thomas <thomas.gif.91@gmail.com>2014-05-28 11:12:50 +0200
commit6f3276653fd622f29e6a906600f6c44c066566f8 (patch)
treef3127587b8c442eded22f9c983797673d288a92e /tests/console/cron/tasks
parentabb8a2892d862c097285ee7f300d12c32428e12c (diff)
downloadforums-6f3276653fd622f29e6a906600f6c44c066566f8.tar
forums-6f3276653fd622f29e6a906600f6c44c066566f8.tar.gz
forums-6f3276653fd622f29e6a906600f6c44c066566f8.tar.bz2
forums-6f3276653fd622f29e6a906600f6c44c066566f8.tar.xz
forums-6f3276653fd622f29e6a906600f6c44c066566f8.zip
[ticket/12597] Improvement of test files
PHPBB3-12597
Diffstat (limited to 'tests/console/cron/tasks')
-rw-r--r--tests/console/cron/tasks/simple.php15
-rw-r--r--tests/console/cron/tasks/simple_ready.php13
2 files changed, 15 insertions, 13 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++;
+ }
+}
diff --git a/tests/console/cron/tasks/simple_ready.php b/tests/console/cron/tasks/simple_ready.php
deleted file mode 100644
index 245d9ba738..0000000000
--- a/tests/console/cron/tasks/simple_ready.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-class phpbb_cron_task_core_simple_ready extends \phpbb\cron\task\base
-{
- public function get_name()
- {
- return get_class($this);
- }
-
- public function run()
- {
- }
-}