Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 29... Línea 29...
29
 *
29
 *
30
 * @package   core
30
 * @package   core
31
 * @copyright 2020 Université Rennes 2 {@link https://www.univ-rennes2.fr}
31
 * @copyright 2020 Université Rennes 2 {@link https://www.univ-rennes2.fr}
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 filestorage_zip_archive_test extends \advanced_testcase {
34
final class filestorage_zip_archive_test extends \advanced_testcase {
35
    /**
35
    /**
36
     * Test mangle_pathname() method.
36
     * Test mangle_pathname() method.
37
     *
37
     *
38
     * @dataProvider pathname_provider
38
     * @dataProvider pathname_provider
39
     *
39
     *
Línea 52... Línea 52...
52
    /**
52
    /**
53
     * Provide some tested pathnames and expected results.
53
     * Provide some tested pathnames and expected results.
54
     *
54
     *
55
     * @return array Array of tested pathnames and expected results.
55
     * @return array Array of tested pathnames and expected results.
56
     */
56
     */
57
    public function pathname_provider() {
57
    public static function pathname_provider(): array {
58
        return [
58
        return [
59
            // Test a string.
59
            // Test a string.
60
            ['my file.pdf', 'my file.pdf'],
60
            ['my file.pdf', 'my file.pdf'],
Línea 61... Línea 61...
61
 
61