Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
33.33% covered (danger)
33.33%
1 / 3
33.33% covered (danger)
33.33%
1 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
phpbb_ext_testext_cron_dummy_task
33.33% covered (danger)
33.33%
1 / 3
33.33% covered (danger)
33.33%
1 / 3
5.67
0.00% covered (danger)
0.00%
0 / 1
 get_name
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 run
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 should_run
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14class phpbb_ext_testext_cron_dummy_task extends \phpbb\cron\task\base
15{
16    static public $was_run = 0;
17
18    public function get_name()
19    {
20        return get_class($this);
21    }
22
23    public function run()
24    {
25        self::$was_run++;
26    }
27
28    public function should_run()
29    {
30        return true;
31    }
32}