Migrated top pane screen option from global.php to Administration => Globals.
[openemr.git] / phpmyadmin / test / AllTests.php
blob72b0eba2c5b9be49168c2bd107ab59f772893a5c
1 <?php
2 /* vim: 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 /**
21 require_once 'PHPUnit/Framework.php';
22 require_once 'PHPUnit/TextUI/TestRunner.php';
23 //require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
24 require_once './test/FailTest.php';
25 require_once './test/PMA_get_real_size_test.php';
26 require_once './test/PMA_sanitize_test.php';
27 require_once './test/PMA_pow_test.php';
28 require_once './test/Environment_test.php';
29 require_once './test/PMA_escapeJsString_test.php';
30 require_once './test/PMA_isValid_test.php';
31 require_once './test/PMA_transformation_getOptions_test.php';
32 require_once './test/PMA_STR_sub_test.php';
34 class AllTests
36 public static function main()
38 $parameters = array();
39 //$parameters['testdoxHTMLFile'] = true;
40 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
41 //$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
42 PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
45 public static function suite()
47 $suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
49 //$suite->addTestSuite('FailTest');
50 $suite->addTestSuite('Environment_test');
51 $suite->addTestSuite('PMA_get_real_size_test');
52 $suite->addTestSuite('PMA_sanitize_test');
53 $suite->addTestSuite('PMA_pow_test');
54 $suite->addTestSuite('PMA_escapeJsString_test');
55 $suite->addTestSuite('PMA_isValid_test');
56 $suite->addTestSuite('PMA_transformation_getOptions_test');
57 $suite->addTestSuite('PMA_STR_sub_test');
58 return $suite;
62 if (PMA_MAIN_METHOD == 'AllTests::main') {
63 echo '<pre>';
64 AllTests::main();
65 echo '</pre>';