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]); }
/** * @expectedException InvalidArgumentException */ public function testAddingExisitngModuleWithInvalidArguments() { $moduleFacade = new ModuleFacade(new Factory(), new Composite(), $this->logger); $moduleFacade->addModule('System', []); }