/** * suite * * @return PHPUnit_Framework_TestSuite */ public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup All Tests'); $suite->addTest(Setup_AllTests::suite()); return $suite; }
* @todo move setup tests to separate test suite with special Setup_TestServer * @todo repair Setup_Backend_AllTests and add them again */ /** * Test helper */ require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php'; if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Setup_AllTests::main'); } class Setup_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup All Tests'); //$suite->addTest(Setup_Backend_AllTests::suite()); $suite->addTestSuite('Setup_CoreTest'); $suite->addTestSuite('Setup_ControllerTest'); $suite->addTestSuite('Setup_JsonTest'); // @todo there seems to be some unbuffered queries here, fix them! //$suite->addTestSuite('Setup_Backend_AllTests'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Setup_AllTests::main') { Setup_AllTests::main(); }