From 7cbe4b7e265343773c2cd2e50b86c68182a64f8e Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 1 Apr 2013 22:50:18 -0400 Subject: Issue #1693398 by donquixote, pounard, sun, Sylvain Lecoy: Allow PSR-0 test classes to be used in D7. --- scripts/run-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/run-tests.sh') 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; } -- cgit v1.2.3