Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

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.

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

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