Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 22... Línea 22...
22
 * @package    core
22
 * @package    core
23
 * @category   test
23
 * @category   test
24
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
24
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 */
26
 */
27
class htmlpurifier_test extends \basic_testcase {
27
final class htmlpurifier_test extends \basic_testcase {
Línea 28... Línea 28...
28
 
28
 
29
    /**
29
    /**
30
     * Verify _blank target is allowed.
30
     * Verify _blank target is allowed.
31
     */
31
     */
Línea 351... Línea 351...
351
    }
351
    }
Línea 352... Línea 352...
352
 
352
 
353
    /**
353
    /**
354
     * Test cases for the test_media_tags test.
354
     * Test cases for the test_media_tags test.
355
     */
355
     */
356
    public function media_tags_provider() {
356
    public static function media_tags_provider(): array {
357
        // Takes an array of attributes, then generates a test for each of them.
357
        // Takes an array of attributes, then generates a test for each of them.
358
        $generatetestcases = function($prefix, array $attrs, array $templates) {
358
        $generatetestcases = function($prefix, array $attrs, array $templates) {
359
            return array_reduce($attrs, function($carry, $attr) use ($prefix, $templates) {
359
            return array_reduce($attrs, function($carry, $attr) use ($prefix, $templates) {
360
                $testcase = [$prefix . '/' . $attr => [
360
                $testcase = [$prefix . '/' . $attr => [