Esempio n. 1
0
 private function addModules(Facade $moduleFacade, Config $config)
 {
     $moduleFacade->addModule('System', [$config->hostToPing]);
     $moduleFacade->addModule('Mysql', [$config->mysqlHost, $config->mysqlUser, $config->mysqlPassword]);
     $moduleFacade->addModule('Memcached', [$config->memcachedIp, $config->memcachedPort]);
 }
Esempio n. 2
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testAddingExisitngModuleWithInvalidArguments()
 {
     $moduleFacade = new ModuleFacade(new Factory(), new Composite(), $this->logger);
     $moduleFacade->addModule('System', []);
 }