예제 #1
0
 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;
 }
예제 #2
0
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'models_benefits_AllTests::main');
}
set_include_path(get_include_path() . PATH_SEPARATOR . "../../../build");
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'HspPayPeriodTest.php';
require_once 'HspTest.php';
require_once 'HspPaymentRequestTest.php';
require_once 'HspSummaryTest.php';
require_once 'DefineHspTest.php';
class models_benefits_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('OrangeHRM models_benefits');
        $suite->addTestSuite('HspPayPeriodTest');
        $suite->addTestSuite('HspTest');
        $suite->addTestSuite('HspSummaryTest');
        $suite->addTestSuite('HspPaymentRequestTest');
        $suite->addTestSuite('DefineHspTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'models_benefits_AllTests::main') {
    models_benefits_AllTests::main();
}