コード例 #1
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('Monitoring');
     $suite->addTest(GLPIInstall_AllTests::suite());
     $suite->addTest(MonitoringInstall_AllTests::suite());
     $suite->addTest(ManageRessources_AllTests::suite());
     return $suite;
 }
コード例 #2
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('FusionInventory');
     if (file_exists("save.sql")) {
         unlink("save.sql");
     }
     $suite->addTest(GLPIInstall_AllTests::suite());
     $suite->addTest(FusinvInstall_AllTests::suite());
     Plugin::loadLang('fusioninventory');
     if (isset($_SERVER['argv']) && isset($_SERVER['argv'][2]) && !isset($_SERVER['argv'][3])) {
         $class = $_SERVER['argv'][2] . "_AllTests";
         $suite->addTest($class::suite());
     } else {
         $suite->addTest(FormatConvertData_AllTests::suite());
         $suite->addTest(SoftwareUpdate_AllTests::suite());
         $suite->addTest(AgentChangeDeviceid_AllTests::suite());
         $suite->addTest(ComputerTransformation_AllTests::suite());
         $suite->addTest(ComputerUpdate_AllTests::suite());
         $suite->addTest(PrinterTransformation_AllTests::suite());
         $suite->addTest(PrinterUpdate_AllTests::suite());
         $suite->addTest(NetworkEquipmentTransformation_AllTests::suite());
         $suite->addTest(NetworkEquipmentUpdate_AllTests::suite());
         $suite->addTest(NetworkEquipmentUpdateDiscovery_AllTests::suite());
         $suite->addTest(ComputerLog_AllTests::suite());
         $suite->addTest(ComputerEntity_AllTests::suite());
         $suite->addTest(RuleIgnoredImport_AllTests::suite());
         $suite->addTest(RuleImport_AllTests::suite());
         $suite->addTest(SoftwareEntityCreation_AllTests::suite());
         $suite->addTest(SoftwareVersionAdd_AllTests::suite());
         $suite->addTest(ComputerDynamic_AllTests::suite());
         $suite->addTest(UnmanagedManaged_AllTests::suite());
         $suite->addTest(UnmanagedImport_AllTests::suite());
         //$suite->addTest(TaskDeployDynamicGroup_AllTests::suite());
         $suite->addTest(ComputerPrinter_AllTests::suite());
         $suite->addTest(ComputerLicense_AllTests::suite());
         $suite->addTest(NetworkEquipmentLLDP_AllTests::suite());
         $suite->addTest(ComputerMonitor_AllTests::suite());
         $suite->addTest(ComputerPeripheral_AllTests::suite());
     }
     # For travis-CI
     file_put_contents("result.stamp", "test ok");
     return $suite;
 }
コード例 #3
0
 public static function suite()
 {
     $suite = new PHPUnit_Framework_TestSuite('TimelineTicket');
     if (file_exists("save.sql")) {
         unlink("save.sql");
     }
     $suite->addTest(GLPIInstall_AllTests::suite());
     $suite->addTest(TimelineticketInstall_AllTests::suite());
     $suite->addTest(ManageTicket_AllTests::suite());
     return $suite;
 }