[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

Unit tests for setuplib.php

Copyright: 2012 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 501 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_setuplib_testcase:: (16 methods):
  test_get_docs_url_standard()
  test_get_docs_url_http()
  test_get_docs_url_https()
  test_get_docs_url_wwwroot()
  test_exception_info_removes_serverpaths()
  test_localcachedir()
  test_make_unique_directory_basedir_is_file()
  test_make_unique_directory()
  test_get_request_storage_directory()
  test_make_request_directory()
  test_merge_query_params()
  test_get_exception_info_link()
  get_exception_info()
  test_object()
  data_for_test_get_real_size()
  test_get_real_size()


Class: core_setuplib_testcase  - X-Ref

Unit tests for setuplib.php

test_get_docs_url_standard()   X-Ref
Test get_docs_url_standard in the normal case when we should link to Moodle docs.


test_get_docs_url_http()   X-Ref
Test get_docs_url_standard in the special case of an absolute HTTP URL.


test_get_docs_url_https()   X-Ref
Test get_docs_url_standard in the special case of an absolute HTTPS URL.


test_get_docs_url_wwwroot()   X-Ref
Test get_docs_url_standard in the special case of a link relative to wwwroot.


test_exception_info_removes_serverpaths()   X-Ref
Test if get_exception_info() removes file system paths.


test_localcachedir()   X-Ref
No description

test_make_unique_directory_basedir_is_file()   X-Ref
No description

test_make_unique_directory()   X-Ref
No description

test_get_request_storage_directory()   X-Ref
No description

test_make_request_directory()   X-Ref
No description

test_merge_query_params()   X-Ref
No description

test_get_exception_info_link()   X-Ref
Test the link processed by get_exception_info().


get_exception_info($ex)   X-Ref
Wrapper to call {@link get_exception_info()}.

param: Exception $ex An exception.
return: stdClass of information.

test_object()   X-Ref
No description

data_for_test_get_real_size()   X-Ref
Data provider for test_get_real_size().

return: array An array of arrays contain test data

test_get_real_size($input, $expectedbytes)   X-Ref
Test the get_real_size() function.

param: string $input the input for get_real_size()
param: int $expectedbytes the expected bytes



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