Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (28 sloc) 1.642 kb
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
5 | tests/bootstrap.php |
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
6 | |
e019f2d @alecpl - s/RoundCube/Roundcube/
alecpl authored
7 | This file is part of the Roundcube Webmail client |
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
8 | Copyright (C) 2009-2012, The Roundcube Dev Team |
7fe3811 @thomascube Changed license to GNU GPLv3+ with exceptions for skins and plugins
thomascube authored
9 | |
10 | Licensed under the GNU General Public License version 3 or |
11 | any later version with exceptions for skins & plugins. |
12 | See the README file for a full license statement. |
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
13 | |
14 | PURPOSE: |
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
15 | Environment initialization script for unit tests |
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
16 +-----------------------------------------------------------------------+
17 | Author: Thomas Bruederli <roundcube@gmail.com> |
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
18 | Author: Aleksander Machniak <alec@alec.pl> |
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
19 +-----------------------------------------------------------------------+
20 */
21
22 if (php_sapi_name() != 'cli')
23 die("Not in shell mode (php-cli)");
24
25 if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
26
27 define('TESTS_DIR', dirname(__FILE__) . '/');
28
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
29 if (@is_dir(TESTS_DIR . 'config')) {
30 define('RCMAIL_CONFIG_DIR', TESTS_DIR . 'config');
63d4b12 @thomascube Create some basic unit tests based in simpletest.org
thomascube authored
31 }
32
e824925 @alecpl Rewritten test scripts for PHPUnit
alecpl authored
33 require_once(INSTALL_PATH . 'program/include/iniset.php');
9b05f19 @alecpl Restructured tests
alecpl authored
34
35 rcmail::get_instance()->config->set('devel_mode', false);
Something went wrong with that request. Please try again.