Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 34... Línea 34...
34
 *
34
 *
35
 * @package    tool_customlang
35
 * @package    tool_customlang
36
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
36
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 */
38
 */
39
class langstring_test extends advanced_testcase {
39
final class langstring_test extends advanced_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * Sanity 1.x string
42
     * Sanity 1.x string
43
     * - all variables but $a placeholders must be escaped because the string is eval'ed
43
     * - all variables but $a placeholders must be escaped because the string is eval'ed
Línea 58... Línea 58...
58
    /**
58
    /**
59
     * Data provider for the test_parse.
59
     * Data provider for the test_parse.
60
     *
60
     *
61
     * @return  array
61
     * @return  array
62
     */
62
     */
63
    public function fix_syntax_data(): array {
63
    public static function fix_syntax_data(): array {
64
        return [
64
        return [
65
            // Syntax sanity v1 strings.
65
            // Syntax sanity v1 strings.
66
            [
66
            [
67
                'No change', 1, null,
67
                'No change', 1, null,
68
                'No change'
68
                'No change'