3.1.3 release
[phpmyadmin/crack.git] / test / AllTests.php
blob8c2cf9c9de75a6538d68799140e0a7157dd9ac44
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * runs all defined tests
6 * @version $Id$
7 * @package phpMyAdmin-test
8 */
10 /**
13 if (! defined('PMA_MAIN_METHOD')) {
14 define('PMA_MAIN_METHOD', 'AllTests::main');
15 chdir('..');
18 // required to not die() in some libraries
19 define('PHPMYADMIN', true);
21 /**
24 require_once 'PHPUnit/Framework.php';
25 require_once 'PHPUnit/TextUI/TestRunner.php';
26 //require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
27 require_once './test/FailTest.php';
28 require_once './test/PMA_get_real_size_test.php';
29 require_once './test/PMA_sanitize_test.php';
30 require_once './test/PMA_pow_test.php';
31 require_once './test/Environment_test.php';
32 require_once './test/PMA_escapeJsString_test.php';
33 require_once './test/PMA_isValid_test.php';
34 require_once './test/PMA_transformation_getOptions_test.php';
35 require_once './test/PMA_STR_sub_test.php';
36 require_once './test/PMA_generateCommonUrl_test.php';
37 require_once './test/PMA_blowfish_test.php';
38 require_once './test/PMA_escapeMySqlWildcards_test.php';
40 class AllTests
42 public static function main()
44 $parameters = array();
45 //$parameters['testdoxHTMLFile'] = true;
46 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
47 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
48 PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
51 public static function suite()
53 $suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
55 //$suite->addTestSuite('FailTest');
56 $suite->addTestSuite('Environment_test');
57 $suite->addTestSuite('PMA_get_real_size_test');
58 $suite->addTestSuite('PMA_sanitize_test');
59 $suite->addTestSuite('PMA_pow_test');
60 $suite->addTestSuite('PMA_escapeJsString_test');
61 $suite->addTestSuite('PMA_isValid_test');
62 $suite->addTestSuite('PMA_transformation_getOptions_test');
63 $suite->addTestSuite('PMA_STR_sub_test');
64 $suite->addTestSuite('PMA_generate_common_url_test');
65 //$suite->addTestSuite('PMA_arrayWalkRecursive_test');
66 $suite->addTestSuite('PMA_blowfish_test');
67 return $suite;
71 if (PMA_MAIN_METHOD == 'AllTests::main') {
72 echo '<pre>';
73 AllTests::main();
74 echo '</pre>';