/** * Merges the test suites * * @return PHPUnit_Framework_TestSuite */ public static function suite() { // These directories are covered for the code coverage even they are not part of unit testing PHPUnit_Util_Filter::addDirectoryToWhitelist(dirname(dirname(dirname(__FILE__))) . '/application'); PHPUnit_Util_Filter::addDirectoryToWhitelist(dirname(dirname(dirname(__FILE__))) . '/library/Phprojekt'); // Avoid Selenium checks PHPUnit_Util_Filter::addDirectoryToFilter(dirname(__FILE__) . '/Selenium'); $authNamespace = new Zend_Session_Namespace('Phprojekt_Auth-login'); $authNamespace->userId = 1; $authNamespace->admin = 1; $suite = new PHPUnit_Framework_TestSuite('PHPUnit'); $suite->sharedFixture = Phprojekt::getInstance()->getDb(); $suite->addTest(Timecard_AllTests::suite()); $suite->addTest(Statistic_AllTests::suite()); $suite->addTest(User_AllTests::suite()); $suite->addTest(Calendar_AllTests::suite()); $suite->addTest(Note_AllTests::suite()); $suite->addTest(Todo_AllTests::suite()); $suite->addTest(Helpdesk_AllTests::suite()); $suite->addTest(Phprojekt_AllTests::suite()); $suite->addTest(History_AllTests::suite()); $suite->addTest(Role_AllTests::suite()); $suite->addTest(Tab_AllTests::suite()); $suite->addTest(Project_AllTests::suite()); $suite->addTest(Module_AllTests::suite()); $suite->addTest(Contact_AllTests::suite()); $suite->addTest(Filemanager_AllTests::suite()); $suite->addTest(Gantt_AllTests::suite()); $suite->addTest(Minutes_AllTests::suite()); // Add here additional test suites $suite->addTest(Default_AllTests::suite()); //$suite->addTestSuite(Selenium_AllTests::suite()); return $suite; }
$suite->addTestSuite('Phprojekt_LanguageTest'); $suite->addTestSuite('Phprojekt_LanguageAdapterTest'); $suite->addTestSuite('Phprojekt_LogTest'); $suite->addTestSuite('Phprojekt_ErrorTest'); $suite->addTestSuite('Phprojekt_ActiveRecord_AbstractTest'); $suite->addTestSuite('Phprojekt_HistoryTest'); $suite->addTestSuite('Phprojekt_Filter_UserFilterTest'); $suite->addTestSuite('Phprojekt_Tree_Node_DatabaseTest'); $suite->addTestSuite('Phprojekt_AuthTest'); $suite->addTestSuite('Phprojekt_AclTest'); $suite->addTestSuite('Phprojekt_RoleRightsTest'); $suite->addTestSuite('Phprojekt_Converter_JsonTest'); $suite->addTestSuite('Phprojekt_Converter_CsvTest'); $suite->addTestSuite('Phprojekt_Converter_TextTest'); $suite->addTestSuite('Phprojekt_Converter_TimeTest'); $suite->addTestSuite('Phprojekt_ModelInformation_DefaultTest'); $suite->addTestSuite('Phprojekt_TagsTest'); $suite->addTestSuite('Phprojekt_Filter_ParseTreeTest'); $suite->addTestSuite('Phprojekt_SearchTest'); $suite->addTestSuite('Phprojekt_TabsTest'); $suite->addTestSuite('Phprojekt_PhprojektTest'); $suite->addTestSuite('Phprojekt_Date_CollectionTest'); $suite->addTestSuite('Phprojekt_ConfigurationTest'); $suite->addTestSuite('Phprojekt_SettingTest'); $suite->addTestSuite('Phprojekt_FilterTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Phprojekt_AllTests::main') { Phprojekt_AllTests::main(); }