mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/12597] Improvement of test files
PHPBB3-12597
This commit is contained in:
15
tests/console/cron/tasks/simple.php
Normal file
15
tests/console/cron/tasks/simple.php
Normal file
@@ -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++;
|
||||
}
|
||||
}
|
@@ -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()
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user