Search moodle.org's
Developer Documentation


/ -> mdeploytest.php (summary)

PHPUnit tests for the mdeploy.php utility Because the mdeploy.php can't be part of the Moodle code itself, this tests must be executed using something like:

Copyright: 2012 David Mudrak <david@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 303 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mdeploy.php

Defines 4 classes


Class: input_fake_provider  - X-Ref

Provides testable input options.

set_fake_options(array $options)   X-Ref
Sets fake raw options.

param: array $options

parse_raw_options()   X-Ref
Returns the explicitly set fake options.

return: array

Class: testable_input_manager  - X-Ref

Testable subclass.

cast_value($raw, $type)   X-Ref
Provides access to the protected method so we can test it explicitly.


initialize()   X-Ref
Sets the fake input provider.


Class: testable_worker  - X-Ref

Testable subclass

move_directory($source, $target, $keepsourceroot = false)   X-Ref
Provides access to the protected method.


remove_directory($path, $keeppathroot = false)   X-Ref
Provides access to the protected method.


create_directory_precheck($path)   X-Ref
Provides access to the protected method.


Search This Site: