Russian update
[phpmyadmin/madhuracj.git] / test / AllTests.php
blob079a947a1e69453120e95fe8a7e4c04741814c3c
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 // just add $_SESSION array once, so no need to test for existance evrywhere to get rid of NOtices about this
22 if (empty($_SESSION)) {
23 $_SESSION = array();
26 /**
29 require_once 'PHPUnit/Framework.php';
30 require_once 'PHPUnit/TextUI/TestRunner.php';
31 //require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
32 require_once './test/FailTest.php';
33 require_once './test/PMA_get_real_size_test.php';
34 require_once './test/PMA_sanitize_test.php';
35 require_once './test/PMA_pow_test.php';
36 require_once './test/Environment_test.php';
37 require_once './test/PMA_escapeJsString_test.php';
38 require_once './test/PMA_isValid_test.php';
39 require_once './test/PMA_transformation_getOptions_test.php';
40 require_once './test/PMA_STR_sub_test.php';
41 require_once './test/PMA_generateCommonUrl_test.php';
42 require_once './test/PMA_blowfish_test.php';
43 require_once './test/PMA_escapeMySqlWildcards_test.php';
44 require_once './test/PMA_showHint_test.php';
45 require_once './test/PMA_formatNumberByteDown_test.php';
46 require_once './test/PMA_localisedDateTimespan_test.php';
47 require_once './test/PMA_cache_test.php';
48 require_once './test/PMA_quoting_slashing_test.php';
49 require_once './test/PMA_stringOperations_test.php';
50 require_once './test/PMA_printableBitValue_test.php';
51 require_once './test/PMA_foreignKeySupported_test.php';
52 require_once './test/PMA_headerLocation_test.php';
53 require_once './test/PMA_Message_test.php';
54 require_once './test/PMA_whichCrlf_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;