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; }
* OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program; * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA * */ if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'models_eimadmin_import_AllTests::main'); } set_include_path(get_include_path() . PATH_SEPARATOR . "../../../../build"); require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'CSVSplitterTest.php'; class models_eimadmin_import_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('OrangeHRM models_eimadmin_import'); $suite->addTestSuite('CSVSplitterTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'models_eimadmin_import_AllTests::main') { models_eimadmin_import_AllTests::main(); }