Example #1
0
 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;
 }
Example #2
0
 * 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_Worker_AllTests::main');
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'ManagerTest.php';
class Edo_Event_Worker_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Earth.org - Edo_Event_Worker');
        $suite->addTestSuite('Edo_Event_Worker_ManagerTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Edo_Event_Worker_AllTests::main') {
    Edo_Event_Worker_AllTests::main();
}