コード例 #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_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;
 }
コード例 #2
0
 * 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_report_AllTests::main');
}
set_include_path(get_include_path() . PATH_SEPARATOR . "../../../build");
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'ReportGeneratorTest.php';
class models_report_AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }
    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('OrangeHRM models_report');
        $suite->addTestSuite('ReportGeneratorTest');
        return $suite;
    }
}
if (PHPUnit_MAIN_METHOD == 'models_report_AllTests::main') {
    models_report_AllTests::main();
}