[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Behat command utils
Copyright: | 2012 David Monllaó |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 222 lines (7 kb) |
Included or required: | 3 times |
Referenced: | 0 times |
Includes or requires: | 1 file lib/behat/lib.php |
behat_command:: (6 methods):
get_behat_dir()
get_behat_command()
run()
behat_setup_problem()
are_behat_dependencies_installed()
output_msg()
Class: behat_command - X-Ref
Behat command related utilsget_behat_dir() X-Ref |
Ensures the behat dir exists in moodledata return: string Full path |
get_behat_command($custombyterm = false) X-Ref |
Returns the executable path Allows returning a customized command for cygwin when the command is just displayed, when using exec(), system() and friends we stay with DIRECTORY_SEPARATOR as they use the normal cmd.exe (in Windows). param: bool $custombyterm If the provided command should depend on the terminal where it runs return: string |
run($options = '') X-Ref |
Runs behat command with provided options Execution continues when the process finishes param: string $options Defaults to '' so tests would be executed return: array CLI command outputs [0] => string, [1] => integer |
behat_setup_problem() X-Ref |
Checks if behat is set up and working Notifies failures both from CLI and web interface. It checks behat dependencies have been installed and runs the behat help command to ensure it works as expected return: int Error code or 0 if all ok |
are_behat_dependencies_installed() X-Ref |
Has the site installed composer with --dev option return: bool |
output_msg($msg) X-Ref |
Outputs a message. Used in CLI + web UI methods. Stops the execution in web. param: string $msg return: void |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |