Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 * 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_Engine_AllTests::main');
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'FileTest.php';
require_once 'FactoryTest.php';
class Edo_Event_Engine_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Earth.org - Edo_Event_Engine');
        $suite->addTestSuite('Edo_Event_Engine_FileTest');
        $suite->addTestSuite('Edo_Event_Engine_FactoryTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Edo_Event_Engine_AllTests::main') {
    Edo_Event_Engine_AllTests::main();
}