Use PMA_DBI_get_columns in odt export
[phpmyadmin.git] / test / AllTests.php
blob338f83d580c42a362d83fb41bdf0e10d2541e84a
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * runs all defined tests
6 * @package phpMyAdmin-test
7 */
9 /**
12 if (! defined('PMA_MAIN_METHOD')) {
13 define('PMA_MAIN_METHOD', 'AllTests::main');
14 chdir('..');
17 // required to not die() in some libraries
18 define('PHPMYADMIN', true);
20 // just add $_SESSION array once, so no need to test for existance evrywhere to get rid of NOtices about this
21 if (empty($_SESSION)) {
22 $_SESSION = array();
25 /**
28 require_once 'PHPUnit/Framework.php';
29 require_once 'PHPUnit/TextUI/TestRunner.php';
30 //require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
31 require_once './test/FailTest.php';
32 require_once './test/PMA_get_real_size_test.php';
33 require_once './test/PMA_sanitize_test.php';
34 require_once './test/PMA_pow_test.php';
35 require_once './test/Environment_test.php';
36 require_once './test/PMA_escapeJsString_test.php';
37 require_once './test/PMA_isValid_test.php';
38 require_once './test/PMA_transformation_getOptions_test.php';
39 require_once './test/PMA_STR_sub_test.php';
40 require_once './test/PMA_generateCommonUrl_test.php';
41 require_once './test/PMA_blowfish_test.php';
42 require_once './test/PMA_escapeMySqlWildcards_test.php';
43 require_once './test/PMA_showHint_test.php';
44 require_once './test/PMA_formatNumberByteDown_test.php';
45 require_once './test/PMA_localisedDateTimespan_test.php';
46 require_once './test/PMA_cache_test.php';
47 require_once './test/PMA_quoting_slashing_test.php';
48 require_once './test/PMA_stringOperations_test.php';
49 require_once './test/PMA_printableBitValue_test.php';
50 require_once './test/PMA_foreignKeySupported_test.php';
51 require_once './test/PMA_headerLocation_test.php';
52 require_once './test/PMA_Message_test.php';
53 require_once './test/PMA_whichCrlf_test.php';
54 require_once './test/PMA_SQL_parser_data_test.php';
56 class AllTests
58 public static function main()
60 $parameters = array();
61 //$parameters['testdoxHTMLFile'] = true;
62 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
63 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
64 PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
67 public static function suite()
69 $suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
71 //$suite->addTestSuite('FailTest');
72 $suite->addTestSuite('Environment_test');
73 $suite->addTestSuite('PMA_get_real_size_test');
74 $suite->addTestSuite('PMA_sanitize_test');
75 $suite->addTestSuite('PMA_pow_test');
76 $suite->addTestSuite('PMA_escapeJsString_test');
77 $suite->addTestSuite('PMA_isValid_test');
78 $suite->addTestSuite('PMA_transformation_getOptions_test');
79 $suite->addTestSuite('PMA_STR_sub_test');
80 $suite->addTestSuite('PMA_generate_common_url_test');
81 $suite->addTestSuite('PMA_blowfish_test');
82 $suite->addTestSuite('PMA_escapeMySqlWildcards_test');
83 $suite->addTestSuite('PMA_showHint_test');
84 $suite->addTestSuite('PMA_formatNumberByteDown_test');
85 $suite->addTestSuite('PMA_localisedDateTimespan_test');
86 $suite->addTestSuite('PMA_cache_test');
87 $suite->addTestSuite('PMA_quoting_slashing_test');
88 $suite->addTestSuite('PMA_stringOperations_test');
89 $suite->addTestSuite('PMA_printableBitValue_test');
90 $suite->addTestSuite('PMA_foreignKeySupported_test');
91 $suite->addTestSuite('PMA_headerLocation_test');
92 $suite->addTestSuite('PMA_Message_test');
93 $suite->addTestSuite('PMA_whichCrlf_test');
94 return $suite;