forked from atkphpframework/achievo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
45 lines (38 loc) · 1.13 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Unittest and webtest file
*
* Runs all unittests and webtests within the achievo folder and it's
* subfolders. In advance to using this file, the config variables
* whithin this file must be adjusted.
*
* @package achievo
*
* @author guido <[email protected]>
*
* @copyright (c) 2005 Ibuildings.nl BV
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2
*
* @version $Revision$
* $Id$
*/
/**
* @internal includes
*/
$config_atkroot = "./";
include_once("atk.inc");
// Start session
atksession();
// Require ATK authentication if not running in text mode
if(PHP_SAPI != "cli")
{
atksecure();
}
// Set the maximum execution time of all tests together
set_time_limit(atkconfig("test_maxexecutiontime"));
// Include the Achievo extended webtestcase (features loginAchievo function)
atkimport("test.achievowebtestcase");
// Let the atktestsuite run the requested tests in an appropriate format
$suite = &atknew("atk.test.atktestsuite");
$suite->run((PHP_SAPI != "cli") ? "html" : "text", atkArrayNvl($_REQUEST, "atkmodule"));
?>