MDL-50611 test: use cURL extension to download Composer

The curl binary is nowhere near as common in Windows environments as it is
in Linux and Mac ones. In order to encourage more users to adopt Behat and
PHPUnit for their testing, we should avoid introducing unnecessary
hurdles.
This commit is contained in:
Luke Carrier
2015-06-22 15:50:01 +01:00
committed by Luke Carrier
parent f4bfbd5aa2
commit 0897e19093
3 changed files with 44 additions and 14 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ class behat_command {
// Returning composer error code to avoid conflicts with behat and moodle error codes.
self::output_msg(get_string('errorcomposer', 'tool_behat'));
return BEHAT_EXITCODE_COMPOSER;
return TESTING_EXITCODE_COMPOSER;
}
// Behat test command.
@@ -167,7 +167,7 @@ class behat_command {
// Returning composer error code to avoid conflicts with behat and moodle error codes.
self::output_msg(get_string('errorbehatcommand', 'tool_behat', self::get_behat_command()));
return BEHAT_EXITCODE_COMPOSER;
return TESTING_EXITCODE_COMPOSER;
}
// No empty values.