Initial Commit
This commit is contained in:
38
database/php/pear/tests/AllTests.php
Normal file
38
database/php/pear/tests/AllTests.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
if (!defined('PHPUnit_MAIN_METHOD')) {
|
||||
define('PHPUnit_MAIN_METHOD', 'Event_Dispatcher_AllTests::main');
|
||||
}
|
||||
|
||||
require_once 'PHPUnit/Framework/TestSuite.php';
|
||||
require_once 'PHPUnit/TextUI/TestRunner.php';
|
||||
require_once 'DispatcherTest.php';
|
||||
|
||||
class Event_Dispatcher_AllTests
|
||||
{
|
||||
// {{{ main()
|
||||
|
||||
public static function main()
|
||||
{
|
||||
PHPUnit_TextUI_TestRunner::run(self::suite());
|
||||
}
|
||||
|
||||
// }}}
|
||||
// {{{ suite()
|
||||
|
||||
public static function suite()
|
||||
{
|
||||
$suite = new PHPUnit_Framework_TestSuite('Event Dispatcher Tests');
|
||||
$suite->addTestSuite('DispatcherTest');
|
||||
|
||||
return $suite;
|
||||
}
|
||||
|
||||
// }}}
|
||||
}
|
||||
|
||||
if (PHPUnit_MAIN_METHOD == 'Event_Dispatcher_AllTests::main') {
|
||||
Event_Dispatcher_AllTests::main();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user