diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-24 08:01:07 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-24 08:01:07 +0000 |
commit | 73b11a40be224a2e12eda75aeb72d3f2a72f7477 (patch) | |
tree | 45506f727056d2d605f7537eaa124593a7bcd1d0 /tests | |
parent | eb914d4a7f495cf9e34b6df822374d10828ac936 (diff) | |
download | semanticscuttle-73b11a40be224a2e12eda75aeb72d3f2a72f7477.tar.gz semanticscuttle-73b11a40be224a2e12eda75aeb72d3f2a72f7477.tar.bz2 |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/AllTests.php | 8 | ||||
-rw-r--r-- | tests/prepare.php | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/AllTests.php b/tests/AllTests.php index db3ebfe..c4429a3 100644 --- a/tests/AllTests.php +++ b/tests/AllTests.php @@ -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() { diff --git a/tests/prepare.php b/tests/prepare.php index 50304c2..73d804d 100644 --- a/tests/prepare.php +++ b/tests/prepare.php @@ -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 |