]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
make it possible to run other tests standalone, too
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 24 Oct 2009 08:01:07 +0000 (08:01 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 24 Oct 2009 08:01:07 +0000 (08:01 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@398 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/AllTests.php
tests/prepare.php

index db3ebfe041b94309d5c73f4c079cc231fdf65da6..c4429a3d93e37055b2d44b0deb6ba245576742a2 100644 (file)
@@ -27,6 +27,7 @@ class AllTests extends PHPUnit_Framework_TestSuite
     }
 
 
+
     public static function suite()
     {
        $suite = new AllTests();
@@ -40,12 +41,7 @@ class AllTests extends PHPUnit_Framework_TestSuite
         return $suite;
     }
  
-    protected function setUp()
-    {
-       global $dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbpersist, $dbtype,
-            $tableprefix, $TEMPLATES_DIR, $filetypes, $debugMode;
-               require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
-    }
+
  
     protected function tearDown()
     {
index 50304c22be4d5d95075c72f78e37cbb1440d598d..73d804d078d44c1677d1e43c668cd022f84e90ed 100644 (file)
@@ -4,4 +4,6 @@
  */
 $_SERVER['HTTP_HOST'] = 'http://localhost/';
 define('UNIT_TEST_MODE', true);
+
+require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php'
 ?>
\ No newline at end of file