[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> string_manager_standard_test.php (summary)

Unit tests for localization support in lib/moodlelib.php

Copyright: 2013 David Mudrak <david@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 151 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

core_string_manager_standard_testcase:: (4 methods):
  test_string_manager_instance()
  test_get_language_dependencies()
  test_deprecated_strings()
  test_validate_deprecated_strings_files()

testable_core_string_manager:: (2 methods):
  instance()
  get_all_deprecated_strings()


Class: core_string_manager_standard_testcase  - X-Ref

Tests for the API of the string_manager.

test_string_manager_instance()   X-Ref
No description

test_get_language_dependencies()   X-Ref
No description

test_deprecated_strings()   X-Ref
No description

test_validate_deprecated_strings_files()   X-Ref
This test is a built-in validation of deprecated.txt files in lang locations.

It will fail if the string in the wrong format or non-existing (mistyped) string was deprecated.

Class: testable_core_string_manager  - X-Ref

Helper class providing testable string_manager

instance($otherroot, $localroot = null, $usecache = false, array $translist = array()   X-Ref
Factory method

param: string $otherroot full path to the location of installed upstream language packs
param: string $localroot full path to the location of locally customized language packs, defaults to $otherroot
param: bool $usecache use application permanent cache
param: array $translist explicit list of visible translations
param: string $menucache the location of a file that caches the list of available translations
return: testable_core_string_manager

get_all_deprecated_strings()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1