Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

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