tests/AllTests.php -text
tests/SeleniumTests.php -text
tests/TarCentos52Tests.php -text
-tests/build/documentation/AllTests.php -text
-tests/build/documentation/DocumentationTests.php -text
-tests/build/packages/AllTests.php -text
-tests/build/packages/BuildTests.php -text
-tests/code/deprecations/AllTests.php -text
-tests/code/deprecations/DeprecationsTests.php -text
-tests/code/syntax/AllTests.php -text
-tests/code/syntax/SyntaxTests.php -text
+tests/build/documentation/DocumentationTest.php -text
+tests/build/packages/BuildTest.php -text
+tests/code/deprecations/DeprecationsTest.php -text
+tests/code/syntax/SyntaxTest.php -text
tests/func/AllTests.php -text
tests/func/Forums/AllTests.php -text
tests/func/Forums/forums.php -text
tests/scripts/start_vz.sh -text
tests/scripts/stop_vm.sh -text
tests/scripts/stop_vz.sh -text
-tests/unit/AllTests.php -text
-tests/unit/config/AllTests.php -text
-tests/unit/config/ConfigTests.php -text
-tests/unit/utils/AllTests.php -text
-tests/unit/utils/DbUtilsTests.php -text
-tests/unit/utils/TextSanitizerTests.php -text
-tests/unit/utils/UtilsTests.php -text
+tests/unit/config/ConfigTest.php -text
+tests/unit/utils/DbUtilsTest.php -text
+tests/unit/utils/TextSanitizerTest.php -text
+tests/unit/utils/UtilsTest.php -text
tools/check_and_update_forum_role_settings.php -text
tools/export-tracker.tcl -text
tools/jpgraph_pietest.php -text
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
-// Unit tests
-require_once 'unit/utils/AllTests.php';
-require_once 'unit/config/AllTests.php';
-//require_once 'ACL/AllTests.php';
-
-
-// Code tests
-require_once 'code/syntax/AllTests.php';
-require_once 'code/deprecations/AllTests.php';
-
-// Build tests
-require_once 'build/packages/AllTests.php';
-require_once 'build/documentation/AllTests.php';
-
-// Remote tests
-//require_once 'remote/tarball/AllTests.php';
-
-// Selenium based tests
-//require_once 'func/Site/AllTests.php';
-//require_once 'func/Trackers/AllTests.php';
-//require_once 'func/Tasks/AllTests.php';
-//require_once 'func/Forums/AllTests.php';
-//require_once 'func/PluginsWiki/AllTests.php';
-//require_once 'func/PluginsWebSvn/AllTests.php';
-//require_once 'func/News/AllTests.php';
-//require_once 'func/scm/AllTests.php';
-//require_once 'func/docs/AllTests.php';
-
-
class AllTests
{
public static function main()
$suite = new PHPUnit_Framework_TestSuite('PHPUnit');
// Unit tests
- $suite->addTest(Utils_AllTests::suite());
- $suite->addTest(Config_AllTests::suite());
-// $suite->addTest(ACL_AllTests::suite());
+ $suite->addTestFiles(glob("unit/*/*Test.php"));
// Code tests
- $suite->addTest(Syntax_AllTests::suite());
- $suite->addTest(Deprecations_AllTests::suite());
+ $suite->addTestFiles(glob("code/*/*Test.php"));
// Building packages and documentation tests
- $suite->addTest(Packages_AllTests::suite());
- $suite->addTest(Documentation_AllTests::suite());
-
- // Remote tests
-// $suite->addTest(Remote_AllTests::suite());
-
- // Integration tests (Selenium).
-// $suite->addTest(Site_AllTests::suite());
-// $suite->addTest(Trackers_AllTests::suite());
-// $suite->addTest(Tasks_AllTests::suite());
-// $suite->addTest(Forums_AllTests::suite());
-// $suite->addTest(News_AllTests::suite());
-// $suite->addTest(PluginsWiki_AllTests::suite());
-// $suite->addTest(PluginsWebSvn_AllTests::suite());
-// $suite->addTest(Scm_AllTests::suite());
-// $suite->addTest(Docs_AllTests::suite());
+ $suite->addTestFiles(glob("build/*/*Test.php"));
return $suite;
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
-// Unit tests
-require_once 'unit/utils/AllTests.php';
-require_once 'unit/config/AllTests.php';
-//require_once 'ACL/AllTests.php';
-
-// Code tests
-require_once 'code/syntax/AllTests.php';
-require_once 'code/deprecations/AllTests.php';
-
-// Selenium based tests
-//require_once 'func/Site/AllTests.php';
-//require_once 'func/Trackers/AllTests.php';
-//require_once 'func/Tasks/AllTests.php';
-//require_once 'func/Forums/AllTests.php';
-//require_once 'func/PluginsWiki/AllTests.php';
-//require_once 'func/PluginsWebSvn/AllTests.php';
-//require_once 'func/News/AllTests.php';
-//require_once 'func/scm/AllTests.php';
-//require_once 'func/docs/AllTests.php';
-
-
class AllTests
{
public static function main()
$suite = new PHPUnit_Framework_TestSuite('PHPUnit');
// Unit tests
- $suite->addTest(Utils_AllTests::suite());
- $suite->addTest(Config_AllTests::suite());
-// $suite->addTest(ACL_AllTests::suite());
+ $suite->addTestFiles(glob("unit/*/*Test.php"));
// Code tests
- $suite->addTest(Syntax_AllTests::suite());
- $suite->addTest(Deprecations_AllTests::suite());
-
- // Integration tests (Selenium).
-// $suite->addTest(Site_AllTests::suite());
-// $suite->addTest(Trackers_AllTests::suite());
-// $suite->addTest(Tasks_AllTests::suite());
-// $suite->addTest(Forums_AllTests::suite());
-// $suite->addTest(News_AllTests::suite());
-// $suite->addTest(PluginsWiki_AllTests::suite());
-// $suite->addTest(PluginsWebSvn_AllTests::suite());
-// $suite->addTest(Scm_AllTests::suite());
-// $suite->addTest(Docs_AllTests::suite());
+ $suite->addTestFiles(glob("code/*/*Test.php"));
return $suite;
}
+++ /dev/null
-<?php
-require_once 'PHPUnit/Framework.php';
-
-require_once dirname(__FILE__).'/DocumentationTests.php';
-
-class Documentation_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Documentation_Tests');
-
- return $suite;
- }
-}
-?>
+++ /dev/null
-<?php
-require_once 'PHPUnit/Framework.php';
-
-require_once dirname(__FILE__).'/BuildTests.php';
-
-class Packages_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Packages_Tests');
-
- return $suite;
- }
-}
-?>
+++ /dev/null
-<?php
-require_once 'PHPUnit/Framework.php';
-
-require_once dirname(__FILE__).'/DeprecationsTests.php';
-
-class Deprecations_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Deprecations_Tests');
- // ...
-
- return $suite;
- }
-}
-?>
+++ /dev/null
-<?php
-require_once 'PHPUnit/Framework.php';
-
-require_once dirname(__FILE__).'/SyntaxTests.php';
-
-class Syntax_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Syntax_Tests');
- // ...
-
- return $suite;
- }
-}
-?>
+++ /dev/null
-<?php
-if (!defined('PHPUnit_MAIN_METHOD')) {
- define('PHPUnit_MAIN_METHOD', 'AllTests::main');
-}
-
-require_once 'PHPUnit/Framework.php';
-require_once 'PHPUnit/TextUI/TestRunner.php';
-
-// Unit tests
-require_once 'utils/AllTests.php';
-require_once 'config/AllTests.php';
-
-class AllTests
-{
- public static function main()
- {
- PHPUnit_TextUI_TestRunner::run(self::suite());
- }
-
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit');
-
- // Unit tests
- $suite->addTest(Utils_AllTests::suite());
- $suite->addTest(Config_AllTests::suite());
-
- return $suite;
- }
-}
-
-if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
- AllTests::main();
-}
-?>
+++ /dev/null
-<?php
-
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__).'/ConfigTests.php';
-
-class Config_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Config_Tests');
-
- return $suite;
- }
-}
-?>
+++ /dev/null
-<?php
-
-require_once 'PHPUnit/Framework.php';
-require_once dirname(__FILE__).'/UtilsTests.php';
-require_once dirname(__FILE__).'/DbUtilsTests.php';
-require_once dirname(__FILE__).'/TextSanitizerTests.php';
-
-class Utils_AllTests
-{
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- $suite->addTestSuite('Utils_Tests');
- $suite->addTestSuite('TextSanitizerTests');
- $suite->addTestSuite('Database_Utils_Tests');
-
- return $suite;
- }
-}
-?>