Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Behat basic functions. More...
Functions | |
behat_check_config_vars () | |
Checks that the behat config vars are properly set. More... | |
behat_clean_init_config () | |
Restrict the config.php settings allowed. More... | |
behat_error ($errorcode, $text='') | |
Exits with an error code. More... | |
behat_error_handler ($errno, $errstr, $errfile, $errline, $errcontext) | |
PHP errors handler to use when running behat tests. More... | |
behat_get_error_string ($errtype) | |
Return logical error string. More... | |
behat_get_run_process () | |
Get behat run process from either $_SERVER or command config. More... | |
behat_get_shutdown_process_errors () | |
Return php errors save which were save during shutdown. More... | |
behat_is_requested_url ($url) | |
Checks if the URL requested by the user matches the provided argument. More... | |
behat_is_test_site () | |
Should we switch to the test site data? More... | |
behat_shutdown_function () | |
Before shutdown save last error entries, so we can fail the test. | |
behat_update_vars_for_process () | |
Fix variables for parallel behat testing. More... | |
cli_execute_parallel ($cmds, $cwd=null, $delay=0) | |
Execute commands in parallel. More... | |
Behat basic functions.
It does not include MOODLE_INTERNAL because is part of the bootstrap.
This script should not be usually included, neither any of its functions used, within mooodle code at all. It's for exclusive use of behat and moodle setup.php. For places requiring a different/special behavior needing to check if are being run as part of behat tests, use: if (defined('BEHAT_SITE_RUNNING')) { ...