Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 * @copyright  2010 Petr Skoda (http://skodak.org)
34
 * @copyright  2010 Petr Skoda (http://skodak.org)
35
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @coversDefaultClass \core_text
36
 * @coversDefaultClass \core_text
37
 *
37
 *
38
 */
38
 */
39
class text_test extends advanced_testcase {
39
final class text_test extends advanced_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * Tests the static parse charset method.
42
     * Tests the static parse charset method.
43
     *
43
     *
Línea 605... Línea 605...
605
    }
605
    }
Línea 606... Línea 606...
606
 
606
 
607
    /**
607
    /**
608
     * Tests the static checker is_charset_supported
608
     * Tests the static checker is_charset_supported
609
     *
609
     *
610
     * @dataProvider is_charset_supported_provider()
610
     * @dataProvider is_charset_supported_provider
611
     * @param string $charset
611
     * @param string $charset
612
     * @param bool $expected
612
     * @param bool $expected
613
     * @covers ::is_charset_supported()
613
     * @covers ::is_charset_supported()
614
     */
614
     */
Línea 619... Línea 619...
619
 
619
 
620
    /**
620
    /**
621
     * Provider for the test_is_charset_supported()
621
     * Provider for the test_is_charset_supported()
622
     * @return array[]
622
     * @return array[]
623
     */
623
     */
624
    public function is_charset_supported_provider() {
624
    public static function is_charset_supported_provider(): array {
625
        return [
625
        return [
626
            "Check unsupported windows charset" => [
626
            "Check unsupported windows charset" => [
627
                "cp1250", false
627
                "cp1250", false
628
            ],
628
            ],