Ejemplo n.º 1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar All Tests');
     $suite->addTest(Calendar_Frontend_AllTests::suite());
     $suite->addTest(Calendar_Model_AllTests::suite());
     $suite->addTestSuite('Calendar_RruleTests');
     $suite->addTestSuite('Calendar_Backend_SqlTest');
     $suite->addTestSuite('Calendar_Controller_EventTests');
     $suite->addTestSuite('Calendar_Controller_ResourceTest');
     $suite->addTestSuite('Calendar_Controller_EventGrantsTests');
     $suite->addTestSuite('Calendar_Controller_EventNotificationsTests');
     $suite->addTestSuite('Calendar_Controller_RecurTest');
     $suite->addTestSuite('Calendar_Controller_MSEventFacadeTest');
     $suite->addTestSuite('Calendar_JsonTests');
     $suite->addTestSuite('Calendar_Import_ICalTest');
     $suite->addTestSuite('Calendar_Export_ICalTest');
     $suite->addTestSuite('Calendar_Convert_Event_VCalendar_AllTests');
     return $suite;
 }
 * 
 * @package     Calendar
 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
 * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
 * @author      Lars Kneschke <*****@*****.**>
 */
/**
 * Test helper
 */
require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Calendar_Model_AllTests::main');
}
class Calendar_Model_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar All Model Tests');
        $suite->addTestSuite('Calendar_Model_AttenderFilterTests');
        $suite->addTestSuite('Calendar_Model_AttenderTests');
        $suite->addTestSuite('Calendar_Model_EventTests');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'Calendar_Model_AllTests::main') {
    Calendar_Model_AllTests::main();
}