Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
if (!defined('PHPUnit_MAIN_METHOD')) {
3
    define('PHPUnit_MAIN_METHOD', 'Event_Dispatcher_AllTests::main');
4
}
5
 
6
require_once 'PHPUnit/Framework/TestSuite.php';
7
require_once 'PHPUnit/TextUI/TestRunner.php';
8
require_once 'DispatcherTest.php';
9
 
10
class Event_Dispatcher_AllTests
11
{
12
    // {{{ main()
13
 
14
    public static function main()
15
    {
16
        PHPUnit_TextUI_TestRunner::run(self::suite());
17
    }
18
 
19
    // }}}
20
    // {{{ suite()
21
 
22
    public static function suite()
23
    {
24
        $suite = new PHPUnit_Framework_TestSuite('Event Dispatcher Tests');
25
        $suite->addTestSuite('DispatcherTest');
26
 
27
        return $suite;
28
    }
29
 
30
    // }}}
31
}
32
 
33
if (PHPUnit_MAIN_METHOD == 'Event_Dispatcher_AllTests::main') {
34
    Event_Dispatcher_AllTests::main();
35
}
36
 
37
?>
38