function parse_options() { $options = getopt("h", array("clients-count:", "log-junit", "verbose", "build")); if (isset($options['h'])) { print_info(); die; } if (isset($options['build'])) { $options['verbose'] = true; $options['log-junit'] = true; } if (isset($options['clients-count'])) { define('SELENIUM_CLIENTS_COUNT', $options['clients-count']); } if (isset($options['log-junit'])) { TestRunner::$log_xml = true; shell_exec("rm /tmp/TEST*.xml"); } if (isset($options['verbose'])) { TestRunner::$verbose = true; } if (!defined('SELENIUM_CLIENTS_COUNT')) { define('SELENIUM_CLIENTS_COUNT', 5); } $runner = new testRunner(); $runner->start(SELENIUM_CLIENTS_COUNT); }