2009-10-04 01:18:49 +02:00
|
|
|
<?php
|
2009-10-26 07:39:59 +01:00
|
|
|
/**
|
|
|
|
* SemanticScuttle - your social bookmark manager.
|
|
|
|
*
|
|
|
|
* PHP version 5.
|
|
|
|
*
|
|
|
|
* @category Bookmarking
|
|
|
|
* @package SemanticScuttle
|
|
|
|
* @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net>
|
|
|
|
* @author Christian Weiske <cweiske@cweiske.de>
|
|
|
|
* @author Eric Dane <ericdane@users.sourceforge.net>
|
|
|
|
* @license GPL http://www.gnu.org/licenses/gpl.html
|
|
|
|
* @link http://sourceforge.net/projects/semanticscuttle
|
|
|
|
*/
|
2009-10-04 01:18:49 +02:00
|
|
|
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
|
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
|
|
|
|
}
|
|
|
|
|
2009-10-04 01:25:07 +02:00
|
|
|
require_once 'prepare.php';
|
2009-10-04 01:18:49 +02:00
|
|
|
require_once 'PHPUnit/Framework/TestSuite.php';
|
|
|
|
|
2009-11-20 18:39:17 +01:00
|
|
|
PHPUnit_Util_Filter::addFileToFilter(__FILE__);
|
|
|
|
|
2009-10-26 07:39:59 +01:00
|
|
|
/**
|
|
|
|
* SemanticScuttle unit tests.
|
|
|
|
*
|
|
|
|
* To launch this tests, you need PHPUnit 3.
|
|
|
|
* Run them with:
|
|
|
|
* $ php tests/AllTests.php
|
|
|
|
* or single files like:
|
|
|
|
* $ php tests/BookmarkTest.php
|
|
|
|
*
|
|
|
|
* You also may use phpunit directly:
|
|
|
|
* $ phpunit tests/AllTests.php
|
|
|
|
*
|
|
|
|
* @category Bookmarking
|
|
|
|
* @package SemanticScuttle
|
|
|
|
* @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net>
|
|
|
|
* @author Christian Weiske <cweiske@cweiske.de>
|
|
|
|
* @author Eric Dane <ericdane@users.sourceforge.net>
|
|
|
|
* @license GPL http://www.gnu.org/licenses/gpl.html
|
|
|
|
* @link http://sourceforge.net/projects/semanticscuttle
|
|
|
|
*/
|
2009-10-04 01:18:49 +02:00
|
|
|
class AllTests extends PHPUnit_Framework_TestSuite
|
|
|
|
{
|
|
|
|
public static function main()
|
|
|
|
{
|
|
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-10-24 10:01:07 +02:00
|
|
|
|
2009-10-04 01:18:49 +02:00
|
|
|
public static function suite()
|
|
|
|
{
|
2009-10-25 20:35:48 +01:00
|
|
|
$suite = new AllTests();
|
2009-10-04 01:18:49 +02:00
|
|
|
$tdir = dirname(__FILE__);
|
2009-10-25 20:35:48 +01:00
|
|
|
$suite->addTestFile($tdir . '/BookmarkTest.php');
|
2010-02-20 12:10:08 +01:00
|
|
|
$suite->addTestFile($tdir . '/Bookmark2TagTest.php');
|
2009-10-25 20:35:48 +01:00
|
|
|
$suite->addTestFile($tdir . '/Tag2TagTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/TagsCacheTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/CommonDescriptionTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/SearchHistoryTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/TagTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/VoteTest.php');
|
2009-10-28 23:18:38 +01:00
|
|
|
$suite->addTestFile($tdir . '/UserTest.php');
|
2010-09-29 00:12:55 +02:00
|
|
|
$suite->addTestFile($tdir . '/Api/ExportCsvTest.php');
|
|
|
|
$suite->addTestFile($tdir . '/Api/PostsDeleteTest.php');
|
2009-10-04 01:18:49 +02:00
|
|
|
return $suite;
|
|
|
|
}
|
2009-10-24 10:01:07 +02:00
|
|
|
|
2009-10-25 20:35:48 +01:00
|
|
|
|
|
|
|
|
2009-10-04 01:18:49 +02:00
|
|
|
protected function tearDown()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
|
|
|
|
AllTests::main();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|