forked from emersonfaria/ExpressoLivre3
/
AllTests.php
40 lines (35 loc) · 1.02 KB
/
AllTests.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
<?php
/**
* Tine 2.0 - http://www.tine20.org
*
* @package Crm
* @license http://www.gnu.org/licenses/agpl.html
* @copyright Copyright (c) 2008 Metaways Infosystems GmbH (http://www.metaways.de)
* @author Lars Kneschke <l.kneschke@metaways.de>
*/
/**
* Test helper
*/
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php';
if (! defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Crm_AllTests::main');
}
class Crm_AllTests
{
public static function main ()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite ()
{
$suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Crm All Tests');
$suite->addTest(Crm_Backend_AllTests::suite());
$suite->addTest(Crm_Export_AllTests::suite());
$suite->addTestSuite('Crm_ControllerTest');
$suite->addTestSuite('Crm_JsonTest');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Crm_AllTests::main') {
Crm_AllTests::main();
}