From: Chuck Hagenbuch Date: Thu, 29 Oct 2009 20:21:35 +0000 (-0400) Subject: Check for the real namespace separator (\) now that PHP 5.3 is out. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef21a3a57a564da523a7bd0132914a854af09702;p=horde.git Check for the real namespace separator (\) now that PHP 5.3 is out. --- diff --git a/framework/Date_Parser/test/Horde/Date/Parser/AllTests.php b/framework/Date_Parser/test/Horde/Date/Parser/AllTests.php index a4d9c8a98..acc75c74d 100644 --- a/framework/Date_Parser/test/Horde/Date/Parser/AllTests.php +++ b/framework/Date_Parser/test/Horde/Date/Parser/AllTests.php @@ -25,7 +25,7 @@ class Horde_Date_Parser_AllTests { { set_include_path(dirname(__FILE__) . '/../../../../lib' . PATH_SEPARATOR . get_include_path()); if (!spl_autoload_functions()) { - spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class); include "$filename.php";')); + spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'\\\', \'_\'), \'/\', $class); include "$filename.php";')); } $suite = new PHPUnit_Framework_TestSuite('Horde Framework - Horde_Date_Parser'); diff --git a/framework/Icalendar/test/Horde/Icalendar/AllTests.php b/framework/Icalendar/test/Horde/Icalendar/AllTests.php index ded1c08eb..16e35fbd2 100644 --- a/framework/Icalendar/test/Horde/Icalendar/AllTests.php +++ b/framework/Icalendar/test/Horde/Icalendar/AllTests.php @@ -25,7 +25,7 @@ class Horde_Icalendar_AllTests { { set_include_path(dirname(__FILE__) . '/../../../lib' . PATH_SEPARATOR . get_include_path()); if (!spl_autoload_functions()) { - spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class); include "$filename.php";')); + spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'\\\', \'_\'), \'/\', $class); include "$filename.php";')); } $suite = new PHPUnit_Framework_TestSuite('Horde Framework - Horde_Icalendar'); diff --git a/framework/bin/test_framework b/framework/bin/test_framework index 791c95e7d..31376eabd 100755 --- a/framework/bin/test_framework +++ b/framework/bin/test_framework @@ -58,7 +58,7 @@ class horde_test_runner $classnames = array($class, $class_notests, $class_horde, $class_horde_notests, $class_pear2, $class_pear2_notests); foreach ($classnames as $classname) { - $classnames[] = str_replace('_', '::', $classname); + $classnames[] = str_replace('_', '\\', $classname); } // Look for something with a ::suite() method.