summaryrefslogtreecommitdiff
path: root/tests/test_tools
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tools')
-rw-r--r--tests/test_tools/unit_tests.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/test_tools/unit_tests.php b/tests/test_tools/unit_tests.php
index e62c2996..61daf26c 100644
--- a/tests/test_tools/unit_tests.php
+++ b/tests/test_tools/unit_tests.php
@@ -12,14 +12,6 @@ require_once($TEST_TOOLS.'/simpletest/reporter.php');
require_once(PRADO_FRAMEWORK.'/prado.php');
-class TMockApplication extends TApplication
-{
- public function run()
- {
- $this->initApplication();
- }
-}
-
class TestFolder
{
public $name='';
@@ -66,11 +58,12 @@ class PradoUnitTester
{
private $_root;
- function __construct($root, $app_dir)
+ function __construct($root, $app_dir='.')
{
$this->_root = $root;
Prado::setPathOfAlias('Tests', $root);
- $app = new TMockApplication($app_dir);
+ if($app_dir===null) $app_dir='.';
+ $app = new TShellApplication($app_dir);
$app->run();
}