2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * runs all defined Selenium tests
6 * @package PhpMyAdmin-test
10 require_once 'PHPUnit/TextUI/TestRunner.php';
11 require_once __DIR__
. '/selenium/PmaSeleniumLoginTest.php';
12 require_once __DIR__
. '/selenium/PmaSeleniumXssTest.php';
13 require_once __DIR__
. '/selenium/PmaSeleniumPrivilegesTest.php';
14 require_once __DIR__
. '/selenium/PmaSeleniumCreateDropDatabaseTest.php';
15 require_once __DIR__
. '/selenium/PmaSeleniumCreateRemoveUserTest.php';
18 * AllSeleniumTests class
20 * Runs all the selenium test cases
22 * @package PhpMyAdmin-test
23 * @subpackage Selenium
25 class AllSeleniumTests
32 public static function main()
34 $parameters = array();
35 PHPUnit_TextUI_TestRunner
::run(self
::suite(), $parameters);
39 * Creates a SeleniumTestSuite and add all the selenium test cases to it
41 * @return PHPUnit_Extensions_SeleniumTestSuite
43 public static function suite()
45 $suite = new PHPUnit_Extensions_SeleniumTestSuite('phpMyAdmin');
47 $suite->addTestSuite('PmaSeleniumLoginTest');
48 $suite->addTestSuite('PmaSeleniumXssTest');
49 $suite->addTestSuite('PmaSeleniumPrivilegesTest');
50 $suite->addTestSuite('PmaSeleniumCreateDropDatabaseTest');
51 $suite->addTestSuite('PmaSeleniumCreateRemoveUserTest');