-
Notifications
You must be signed in to change notification settings - Fork 0
/
AllTests.php
46 lines (39 loc) · 1.15 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
41
42
43
44
45
46
<?php
/**
* phpworkers
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
*
* @copyright Copyright (c) 2010 Slobodan Utvic and Julian Davchev
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Edo_Event_AllTests::main');
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'EngineTest.php';
require_once 'FactoryTest.php';
require_once 'Engine/AllTests.php';
require_once 'Worker/AllTests.php';
class Edo_Event_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Earth.org - Edo Event testcases');
$suite->addTestSuite('Edo_Event_EngineTest');
$suite->addTestSuite('Edo_Event_FactoryTest');
$suite->addTest(Edo_Event_Engine_AllTests::suite());
$suite->addTest(Edo_Event_Worker_AllTests::suite());
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Edo_Event_AllTests::main') {
Edo_Event_AllTests::main();
}