aboutsummaryrefslogtreecommitdiff
path: root/tests/allTests.php
blob: 843911c9bc6255cb434ed32ec6d4c4626caed098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php

/*
* To launch all tests, type the following line into the root directory
* of SemanticScuttle (where is the config.inc.php file) :
* 
*     phpunit --testdox-html tests/dox.html AllTests tests/allTests.php
* 
*  !!Check that $debugMode = false in config.inc.php to avoid unstable beahviours!!
* 
* A dox.html file will be created into the tests/ directory providing a summary
* of tests according to agile development.
* */

class AllTests extends PHPUnit_Framework_TestSuite
{
    public static function suite()
    {
    	$suite = new AllTests();
    	$suite->addTestFile('tests/bookmarksTest.php');
    	$suite->addTestFile('tests/tag2TagTest.php'); 
    	$suite->addTestFile('tests/tagsCacheTest.php');
    	$suite->addTestFile('tests/commonDescriptionTest.php');     	
    	$suite->addTestFile('tests/searchTest.php'); 
    	$suite->addTestFile('tests/tagsTest.php');
        return $suite;
    }
 
    protected function setUp()
    {
    	global $dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbpersist, $dbtype, $tableprefix, $TEMPLATES_DIR, $filetypes, $debugMode;
		require_once('./header.inc.php');
    }
 
    protected function tearDown()
    {
    }
}
?>