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.

(no description)

File Size: 74 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

format_test:: (4 methods):
  test_userdate()
  boolean_as_text_provider()
  test_boolean_as_text()
  test_percent()


Class: format_test  - X-Ref

Unit tests for the format helper

test_userdate()   X-Ref
Test userdate method


boolean_as_text_provider()   X-Ref
Data provider for {@see test_boolean_as_text}

return: array

test_boolean_as_text(bool $value, string $expected)   X-Ref
Test boolean as text

param: bool $value
param: string $expected

test_percent()   X-Ref
Test percentage formatting of a float