Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 21... Línea 21...
21
 *
21
 *
22
 * @package   core_analytics
22
 * @package   core_analytics
23
 * @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
23
 * @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
24
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
25
 */
26
class calculation_info_test extends \advanced_testcase {
26
final class calculation_info_test extends \advanced_testcase {
27
 
-
 
28
    /**
27
    /**
29
     * test_calculation_info description
28
     * test_calculation_info description
30
     *
29
     *
31
     * @dataProvider provider_test_calculation_info_add_pull
30
     * @dataProvider provider_test_calculation_info_add_pull
32
     * @param mixed $info1
31
     * @param mixed $info1
Línea 86... Línea 85...
86
    /**
85
    /**
87
     * provider_test_calculation_info_add_pull
86
     * provider_test_calculation_info_add_pull
88
     *
87
     *
89
     * @return mixed[]
88
     * @return mixed[]
90
     */
89
     */
91
    public function provider_test_calculation_info_add_pull() {
90
    public static function provider_test_calculation_info_add_pull(): array {
92
        return [
91
        return [
93
            'mixed-types' => ['asd', true, [123, 123, 123], (object)['asd' => 'fgfg']],
92
            'mixed-types' => ['asd', true, [123, 123, 123], (object)['asd' => 'fgfg']],
94
        ];
93
        ];
95
    }
94
    }
96
}
95
}