Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions | Variables
lib.php File Reference

Testing general functions. More...

Functions

 testing_cli_argument_path ($moodlepath)
 Returns relative path against current working directory, to be used for shell execution hints. More...
 
 testing_cli_fix_directory_separator ($path)
 Fix DIRECTORY_SEPARATOR for windows. More...
 
 testing_error ($errorcode, $text='')
 Prints an error and stops execution. More...
 
 testing_fix_file_permissions ($file)
 Try to change permissions to $CFG->dirroot or $CFG->dataroot if possible. More...
 
 testing_initdataroot ($dataroot, $framework)
 Mark empty dataroot to be used for testing. More...
 
 testing_is_cygwin ()
 Find out if running under Cygwin on Windows. More...
 
 testing_is_mingw ()
 Returns whether a mingw CLI is running. More...
 
 testing_update_composer_dependencies ()
 Updates the composer installer and the dependencies. More...
 

Variables

const TESTING_EXITCODE_COMPOSER 255
 Composer error exit status.
 

Detailed Description

Testing general functions.

Note: these functions must be self contained and must not rely on any library or include