make it possible to run other tests standalone, too

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@398 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-10-24 08:01:07 +00:00
parent eb914d4a7f
commit 73b11a40be
2 changed files with 4 additions and 6 deletions

View 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()
{

View file

@ -4,4 +4,6 @@
*/
$_SERVER['HTTP_HOST'] = 'http://localhost/';
define('UNIT_TEST_MODE', true);
require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php'
?>