Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 39 and 401]

Skype icons filter phpunit tests

Copyright: 2013 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 216 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes


Class: filter_test  - X-Ref

Skype icons filter testcase.

test_filter_emoticon_filtered(string $input, string $expectedprefix)   X-Ref
Test that filter ignores nolink/pre element, and processes remaining text

param: string $input
param: string $expectedprefix

filter_emoticon_filtered_provider()   X-Ref
Data provider for {@see test_filter_emoticon_filtered}

return: string[]

test_filter_emoticon($input, $format, $expected)   X-Ref
Tests the filter doesn't affect nolink classes.


filter_emoticon_provider()   X-Ref
The data provider for filter emoticon tests, containing input that is not expected to be filtered

return: array

get_converted_content_for_emoticon($text)   X-Ref
Translate the text for a single emoticon into the rendered value.

param: string  $text The text to translate.
return: string

test_filter_invalidformat()   X-Ref
Tests the filter doesn't break anything if activated but invalid format passed.


test_filter_emptyemoticons()   X-Ref
Tests the filter doesn't break anything if activated but no emoticons available.


Class: testable_filter_emoticon  - X-Ref

Subclass for easier testing.

__construct()   X-Ref
No description