bug #2355925 [display] properly update tooltips in navigation frame
[phpmyadmin/crack.git] / test / AllTests.php
blobf2a8eccbcc3b6b75c459892f883db34d285933b7
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 /**
19 * required to not die() in some libraries
21 define('PHPMYADMIN', true);
23 /**
26 require_once 'PHPUnit/Framework.php';
27 require_once 'PHPUnit/TextUI/TestRunner.php';
28 //require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
29 require_once './test/FailTest.php';
30 require_once './test/PMA_get_real_size_test.php';
31 require_once './test/PMA_sanitize_test.php';
32 require_once './test/PMA_pow_test.php';
33 require_once './test/Environment_test.php';
34 require_once './test/PMA_escapeJsString_test.php';
35 require_once './test/PMA_isValid_test.php';
36 require_once './test/PMA_transformation_getOptions_test.php';
37 require_once './test/PMA_STR_sub_test.php';
38 require_once './test/PMA_generateCommonUrl_test.php';
39 require_once './test/PMA_blowfish_test.php';
40 require_once './test/PMA_escapeMySqlWildcards_test.php';
42 /**
43 * Class to run all tests.
44 * @package phpMyAdmin-test
46 class AllTests
48 public static function main()
50 $parameters = array();
51 //$parameters['testdoxHTMLFile'] = true;
52 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
53 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
54 PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
57 public static function suite()
59 $suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
61 //$suite->addTestSuite('FailTest');
62 $suite->addTestSuite('Environment_test');
63 $suite->addTestSuite('PMA_get_real_size_test');
64 $suite->addTestSuite('PMA_sanitize_test');
65 $suite->addTestSuite('PMA_pow_test');
66 $suite->addTestSuite('PMA_escapeJsString_test');
67 $suite->addTestSuite('PMA_isValid_test');
68 $suite->addTestSuite('PMA_transformation_getOptions_test');
69 $suite->addTestSuite('PMA_STR_sub_test');
70 $suite->addTestSuite('PMA_generate_common_url_test');
71 //$suite->addTestSuite('PMA_arrayWalkRecursive_test');
72 $suite->addTestSuite('PMA_blowfish_test');
73 return $suite;
77 if (PMA_MAIN_METHOD == 'AllTests::main') {
78 echo '<pre>';
79 AllTests::main();
80 echo '</pre>';