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.

(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