Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 31... Línea 31...
31
 * @copyright  2018 Shamim Rezaie <shamim@moodle.com>
31
 * @copyright  2018 Shamim Rezaie <shamim@moodle.com>
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class statistics_table_test extends \advanced_testcase {
34
class statistics_table_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    public function test_format_percentage() {
36
    public function test_format_percentage(): void {
Línea 37... Línea 37...
37
        $table = new quiz_statistics_table();
37
        $table = new quiz_statistics_table();
38
 
38
 
39
        // The format_percentage method is protected. Use Reflection to call the method.
39
        // The format_percentage method is protected. Use Reflection to call the method.
Línea 49... Línea 49...
49
                '84.758%',
49
                '84.758%',
50
                $method->invokeArgs($table, [84.7576, false, 3])
50
                $method->invokeArgs($table, [84.7576, false, 3])
51
        );
51
        );
52
    }
52
    }
Línea 53... Línea 53...
53
 
53
 
54
    public function test_format_percentage_range() {
54
    public function test_format_percentage_range(): void {
Línea 55... Línea 55...
55
        $table = new quiz_statistics_table();
55
        $table = new quiz_statistics_table();
56
 
56
 
57
        // The format_percentage_range method is protected. Use Reflection to call the method.
57
        // The format_percentage_range method is protected. Use Reflection to call the method.
Línea 67... Línea 67...
67
                '54.400% − 84.758%',
67
                '54.400% − 84.758%',
68
                $method->invokeArgs($table, [54.4, 84.7576, false, 3])
68
                $method->invokeArgs($table, [54.4, 84.7576, false, 3])
69
        );
69
        );
70
    }
70
    }
Línea 71... Línea 71...
71
 
71
 
72
    public function test_format_range() {
72
    public function test_format_range(): void {
Línea 73... Línea 73...
73
        $table = new quiz_statistics_table();
73
        $table = new quiz_statistics_table();
74
 
74
 
75
        // The format_range method is protected. Use Reflection to call the method.
75
        // The format_range method is protected. Use Reflection to call the method.