From 934069ca2164753f72783eaa7d9fd98e4280f2ec Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 13 Feb 2006 06:04:33 +0000 Subject: Reorganized FT test folder. --- tests/FunctionalTests/config.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/FunctionalTests/config.php') diff --git a/tests/FunctionalTests/config.php b/tests/FunctionalTests/config.php index 99644888..73491c6e 100644 --- a/tests/FunctionalTests/config.php +++ b/tests/FunctionalTests/config.php @@ -90,15 +90,12 @@ class PradoApplicationTester extends TApplication protected function getTestServiceParameter($file) { - $file = realpath($file); - $base = realpath($this->testConfig->tests_directory().'/pages/'); + $file = strtr(realpath($file),'\\','/'); + $base = strtr(realpath($this->testConfig->tests_directory().'/pages/'),'\\','/'); $search = array($base, '.php'); $replace = array('', ''); $pagePath = str_replace($search, $replace, $file); - $separator = array("/", "\\"); - if(in_array($pagePath[0], $separator)) - $pagePath = substr($pagePath, 1); - return str_replace($separator, array('.','.'), $pagePath); + return strtr(trim($pagePath,'/'),'/','.'); } } -- cgit v1.2.3