From 934069ca2164753f72783eaa7d9fd98e4280f2ec Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 13 Feb 2006 06:04:33 +0000 Subject: Reorganized FT test folder. --- tests/FunctionalTests/tickets.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/FunctionalTests/tickets.php (limited to 'tests/FunctionalTests/tickets.php') diff --git a/tests/FunctionalTests/tickets.php b/tests/FunctionalTests/tickets.php new file mode 100644 index 00000000..a2ea99d2 --- /dev/null +++ b/tests/FunctionalTests/tickets.php @@ -0,0 +1,39 @@ +get_directories(dirname(__FILE__).'/tickets/tests', $groups); + + return $groups; + } + + protected function get_directories($base,&$groups) + { + $groups[] = realpath($base); + $dirs = new DirectoryIterator($base); + foreach($dirs as $dir) + if(!$dir->isDot() && $dir->isDir() + && !preg_match("/\.svn/", $dir->getPathName())) + $this->get_directories($dir->getPathName(), $groups); + } +} + + +$root = dirname(__FILE__); +$server = SimpleSeleniumProxyServer::getInstance($root); + +$tester = new PradoSimpleTester(new BrowserTestConfig()); +$browser_tests = $tester->getTests(); +$browser_tests->run(new SimpleReporter()); + +$server->handleRequest(); + +?> \ No newline at end of file -- cgit v1.2.3