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_hrfunct_AllTests::suite()); $suite->addTest(models_recruitment_AllTests::suite()); $suite->addTest(models_benefits_AllTests::suite()); $suite->addTest(models_benefits_mail_AllTests::suite()); return $suite; }
require_once 'PHPUnit/Framework.php'; require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'HolidaysTest.php'; require_once 'LeaveQuotaTest.php'; require_once 'LeaveRequestsTest.php'; require_once 'LeaveSummaryTest.php'; require_once 'LeaveTest.php'; require_once 'LeaveTypeTest.php'; require_once 'WeekendsTest.php'; class models_leave_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('OrangeHRM models_leave'); $suite->addTestSuite('HolidaysTest'); $suite->addTestSuite('LeaveQuotaTest'); $suite->addTestSuite('LeaveRequestsTest'); $suite->addTestSuite('LeaveSummaryTest'); $suite->addTestSuite('LeaveTest'); $suite->addTestSuite('LeaveTypeTest'); $suite->addTestSuite('WeekendsTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'models_leave_AllTests::main') { models_leave_AllTests::main(); }