summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/tools.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/controllers/tools.php b/application/controllers/tools.php
index d1d5ba39b..d38ab7c39 100644
--- a/application/controllers/tools.php
+++ b/application/controllers/tools.php
@@ -70,8 +70,11 @@ class Tools extends MY_Controller {
$url = $argv[3];
$testcase = $argv[4];
- $testclass = '\tests\\'.$testcase;
- $test = new $testclass();
+ $testcase = str_replace("application/", "", $testcase);
+ $testcase = str_replace("/", "\\", $testcase);
+ $testcase = str_replace(".php", "", $testcase);
+
+ $test = new $testcase();
$test->setServer($url);
$exitcode = 0;