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.

Tests for the core_rtlcss class. The core_rtlcss class extends \MoodleHQ\RTLCSS\RTLCSS library which depends on sabberworm/php-css-parser library. This test verifies that css parsing works as expected should any of the above change.

Copyright: 2019 Jake Dallimore <jrhdallimore@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 1266 lines (58 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: rtlcss_test  - X-Ref

Class rtlcss_test.

background_image_provider()   X-Ref
Data provider.

return: array

background_position_provider()   X-Ref
Data provider.

return: array

background_provider()   X-Ref
Data provider.

return: array

directives_provider()   X-Ref
Data provider.

return: array

properties_provider()   X-Ref
Data provider.

return: array

special_provider()   X-Ref
Data provider.

return: array

transform_origin_provider()   X-Ref
Data provider.

return: array

transforms_provider()   X-Ref
Data provider.

return: array

values_nsyntax_provider()   X-Ref
Data provider.

return: array

values_provider()   X-Ref
Data provider.

return: array

assert_flips($expected, $input, $description, $output = null)   X-Ref
Assert that the provided data flips.

param: string $expected The expected output.
param: string $input The input.
param: string $description The description of the assertion.
param: OutputFormat $output The output format to use.

assert_sample($data, $output = null)   X-Ref
Assert data.

param: array $data With the keys: 'input', 'expected', 'reversable', 'should', and 'skip'.
param: OutputFormat $output The output format to use.

test_background_image($data)   X-Ref
Test background images.

param: array $data the provider data.

test_background_position($data)   X-Ref
Test background position.

param: array $data the provider data.

test_background($data)   X-Ref
Test background.

param: array $data the provider data.

test_directives($data)   X-Ref
Test directives.

param: array $data the provider data.

test_properties($data)   X-Ref
Test properties.

param: array $data the provider data.

test_special($data)   X-Ref
Test special.

param: array $data the provider data.

test_transform_origin($data)   X-Ref
Test transform original.

param: array $data the provider data.

test_transforms($data)   X-Ref
Test transform.

param: array $data the provider data.

test_values_nsyntax($data)   X-Ref
Test values n-syntax.

param: array $data the provider data.

test_values($data)   X-Ref
Test values.

param: array $data the provider data.