public static function suite() { $suite = new PHPUnit_Framework_TestSuite('OrangeHRM'); $suite->addTest(common_AllTests::suite()); $suite->addTest(utils_AllTests::suite()); $suite->addTest(models_AllTests::suite()); $suite->addTest(controllers_AllTests::suite()); $suite->addTest(logger_AllTests::suite()); $suite->addTest(dao_AllTests::suite()); $suite->addTest(extractor_AllTests::suite()); return $suite; }
require_once 'eimadmin/import/AllTests.php'; require_once 'hrfunct/AllTests.php'; require_once 'recruitment/AllTests.php'; require_once 'benefits/AllTests.php'; require_once 'benefits/mail/AllTests.php'; require_once 'report/AllTests.php'; class models_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('OrangeHRM model unit tests'); $suite->addTest(models_time_AllTests::suite()); $suite->addTest(models_leave_AllTests::suite()); $suite->addTest(models_eimadmin_AllTests::suite()); $suite->addTest(models_eimadmin_export_AllTests::suite()); $suite->addTest(models_eimadmin_import_AllTests::suite()); $suite->addTest(models_hrfunct_AllTests::suite()); $suite->addTest(models_recruitment_AllTests::suite()); $suite->addTest(models_benefits_AllTests::suite()); $suite->addTest(models_benefits_mail_AllTests::suite()); $suite->addTest(models_report_AllTests::suite()); return $suite; } } if (PHPUnit_MAIN_METHOD == 'models_AllTests::main') { models_AllTests::main(); }