Fix viral parse error.
authorJan Schneider <jan@horde.org>
Thu, 3 Dec 2009 11:13:50 +0000 (12:13 +0100)
committerJan Schneider <jan@horde.org>
Thu, 3 Dec 2009 11:13:50 +0000 (12:13 +0100)
14 files changed:
framework/Argv/test/Horde/Argv/AllTests.php
framework/Constraint/test/Horde/Constraint/AllTests.php
framework/Controller/test/Horde/Controller/AllTests.php
framework/Date/test/Horde/Date/AllTests.php
framework/Db/test/Horde/Db/AllTests.php
framework/Feed/test/Horde/Feed/AllTests.php
framework/Http/test/Horde/Http/AllTests.php
framework/Injector/test/Horde/Injector/AllTests.php
framework/Log/test/Horde/Log/AllTests.php
framework/Pdf/test/Horde/Pdf/AllTests.php
framework/Stream_Filter/test/Horde/Stream/Filter/AllTests.php
framework/Support/test/Horde/Support/AllTests.php
framework/View/test/Horde/View/AllTests.php
framework/Yaml/test/Horde/Yaml/AllTests.php

index e8b56f1..a97d8f6 100644 (file)
@@ -40,9 +40,9 @@ class Horde_Argv_AllTests {
         error_reporting(E_ALL | E_STRICT);
 
         // Set up autoload
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        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";'));
         }
 
         // Test base classes and helper objects
index 02333c4..cef8231 100644 (file)
@@ -20,10 +20,11 @@ class Horde_Constraint_AllTests
 
     public static function suite()
     {
+        // Set up autoload
+        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";'));
         }
-        set_include_path(dirname(__FILE__) . '/../../../lib' . PATH_SEPARATOR . get_include_path());
 
         $suite = new PHPUnit_Framework_TestSuite('Horde Framework - Horde_Constraint');
 
index a366d50..841f3c6 100644 (file)
@@ -37,9 +37,10 @@ class Horde_Controller_AllTests {
 
     public static function suite()
     {
+        // Set up autoload
         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_Controller');
index 302deaf..4c884e9 100644 (file)
@@ -23,9 +23,10 @@ class Horde_Date_AllTests {
 
     public static function suite()
     {
+        // Set up autoload
         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');
index 2c035ba..d84cf29 100644 (file)
@@ -44,10 +44,10 @@ class Horde_Db_AllTests {
         // Ensure a default timezone is set.
         date_default_timezone_set('America/New_York');
 
-        // Set up include_path and autoloading
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        // Set up autoload
+        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); $er = error_reporting(22525); include "$filename.php"; error_reporting($er);'));
+            spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'\\\\\', \'_\'), \'/\', $class); include "$filename.php";'));
         }
 
         // Build the suite
index 016b6e1..0c4fc14 100644 (file)
@@ -20,8 +20,10 @@ class Horde_Feed_AllTests
 
     public static function suite()
     {
+        // Set up autoload
+        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_Feed');
index 1c18ab8..fa9e6b5 100644 (file)
@@ -23,9 +23,10 @@ class Horde_Http_AllTests
 
     public static function suite()
     {
+        // Set up autoload
         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_Http');
index 5f97f04..fa64bf2 100644 (file)
@@ -20,10 +20,11 @@ class Horde_Injector_AllTests
 
     public static function suite()
     {
+        // Set up autoload
+        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); $er = error_reporting(22525); include "$filename.php"; error_reporting($er);'));
+            spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'\\\\\', \'_\'), \'/\', $class); include "$filename.php";'));
         }
-        set_include_path(dirname(__FILE__) . '/../../../lib' . PATH_SEPARATOR . get_include_path());
 
         $suite = new PHPUnit_Framework_TestSuite('Horde Framework - Horde_Injector');
 
index 1735d11..0abfe3f 100644 (file)
@@ -39,10 +39,11 @@ class Horde_Log_AllTests
 
     public static function suite()
     {
+        // Set up autoload
+        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";'));
         }
-        set_include_path(dirname(__FILE__) . '/../../../lib' . PATH_SEPARATOR . get_include_path());
 
         $suite = new PHPUnit_Framework_TestSuite('Horde_Log');
 
index fd81034..176051d 100644 (file)
@@ -31,9 +31,10 @@ class Horde_Pdf_AllTests
 
     public static function suite()
     {
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        // Set up autoload
+        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_Pdf');
index 1094d66..4377489 100644 (file)
@@ -31,9 +31,9 @@ class Horde_Stream_Filter_AllTests
         error_reporting(E_ALL | E_STRICT);
 
         // Set up autoload
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        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_Stream_Filter');
index 5f65318..a07e87e 100644 (file)
@@ -23,9 +23,10 @@ class Horde_Support_AllTests {
 
     public static function suite()
     {
+        // Set up autoload
         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_Support');
index 736e067..fba118a 100644 (file)
@@ -31,9 +31,9 @@ class Horde_View_AllTests {
         date_default_timezone_set('America/New_York');
 
         // Set up autoload
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        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";'));
         }
 
         // Build the suite
index 35fe686..021dca4 100644 (file)
@@ -34,9 +34,9 @@ class Horde_Yaml_AllTests {
         error_reporting(E_ALL | E_STRICT);
 
         // Set up autoload
-        set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
+        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); $er = error_reporting(22525); include "$filename.php"; error_reporting($er);'));
+            spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'\\\\\', \'_\'), \'/\', $class); include "$filename.php";'));
         }
 
         // Test helpers