[commits] [Wiki] changed: Doc/Dev/Component/Horde_Test

Jan Schneider jan at horde.org
Tue Jun 21 09:23:19 UTC 2011


jan  Tue, 21 Jun 2011 09:23:19 +0000

Modified page: http://wiki.horde.org/Doc/Dev/Component/Horde_Test
New Revision:  2.6
Change log:  Fix indention and statement

@@ -77,9 +77,9 @@

          foreach (new RecursiveIteratorIterator(new  
RecursiveDirectoryIterator($basedir)) as $file) {
              if ($file->isFile() && preg_match('/Test.php$/',  
$file->getFilename())) {
                  $pathname = $file->getPathname();
-		if (require $pathname) {
+                if (include $pathname) {
                      $class = str_replace(DIRECTORY_SEPARATOR, '_',
                                            
preg_replace(\"/^$baseregexp(.*)\\.php/\", '\\\\1', $pathname));
                      try {
                          $suite->addTestSuite(self::$_package . '_' . $class);
@@ -92,9 +92,9 @@
                                  $e->getMessage()
                              )
                          );
                      }
-		}
+                }
              }
  	}

  	return $suite;



More information about the commits mailing list