summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-04-01 22:50:18 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-04-01 22:50:18 -0400
commit7cbe4b7e265343773c2cd2e50b86c68182a64f8e (patch)
tree482c920dfba10c492cafb9f4aa84034086d56a56 /scripts
parentde6e29d084adc900fa8c93510efa2679ce82abea (diff)
downloadbrdo-7cbe4b7e265343773c2cd2e50b86c68182a64f8e.tar.gz
brdo-7cbe4b7e265343773c2cd2e50b86c68182a64f8e.tar.bz2
Issue #1693398 by donquixote, pounard, sun, Sylvain Lecoy: Allow PSR-0 test classes to be used in D7.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-tests.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 334501527..189d7f2e8 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -362,6 +362,8 @@ function simpletest_script_run_one_test($test_id, $test_class) {
// Bootstrap Drupal.
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
+ simpletest_classloader_register();
+
$test = new $test_class($test_id);
$test->run();
$info = $test->getInfo();
@@ -395,7 +397,7 @@ function simpletest_script_command($test_id, $test_class) {
if ($args['color']) {
$command .= ' --color';
}
- $command .= " --php " . escapeshellarg($php) . " --test-id $test_id --execute-test $test_class";
+ $command .= " --php " . escapeshellarg($php) . " --test-id $test_id --execute-test " . escapeshellarg($test_class);
return $command;
}