From 6ae6538555d45b3e947f5ce0d948d9b88d95364a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 12 Mar 2006 16:28:21 +0000 Subject: reorganized FT. --- tests/FunctionalTests/config.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/FunctionalTests/config.php') diff --git a/tests/FunctionalTests/config.php b/tests/FunctionalTests/config.php index 73491c6e..358fb8e2 100644 --- a/tests/FunctionalTests/config.php +++ b/tests/FunctionalTests/config.php @@ -10,7 +10,7 @@ require_once($SIMPLE_TEST.'/simpletest/web_tester.php'); require_once($SIMPLE_TEST.'/simpletest/mock_objects.php'); require_once($SIMPLE_TEST.'/simpletest/reporter.php'); require(dirname(__FILE__).'/selenium/php/selenium.php'); -require_once(PradoTestConfig::framework().'/prado.php'); +//require_once(PradoTestConfig::framework().'/prado.php'); /** test configurations , OVERRIDE to suite your enviornment !!! **/ class PradoTestConfig @@ -65,7 +65,7 @@ class PradoTestConfig //set up the PradoApplication Testing stub. -class PradoApplicationTester extends TApplication +class PradoApplicationTester { protected $appUrl; protected $testConfig; @@ -74,12 +74,10 @@ class PradoApplicationTester extends TApplication { $this->appUrl = $appUrl; $this->testConfig = $config; - parent::__construct(); } public function run() { - $this->initApplication(); } public function getTestPage($file) @@ -129,7 +127,7 @@ class PradoSimpleTester while (false !== ($entry = $dir->read())) { - $file = realpath($path.'/'.$entry); + $file = strtr(realpath($path.'/'.$entry),'\\','/'); $matchFile = $this->tester->getTestCase(); if(is_file($file) && $this->filePatternMatch($file)) { -- cgit v1.2.3