示例#1
0
		function setUp ()
		{
        	// Battle account init
        	
        	$this->registry = RegistryModuleFactory::GetInstance()->GetRegistryByExtension("ch");
			
        	return;
			
			
			// Test module init 
			
			$Config = EPPCHRegistryModule::GetConfigurationForm();
        	$fields = $Config->ListFields();
        	/*
        	$fields['Login']->Value = 'TEST-PARTNER-A';
        	//$fields['Password']->Value = 'TEST-PARTNER-A-p';
        	$fields['Password']->Value = 'qwerty123456_';
			*/
        	
        	/*
        	$fields['Login']->Value = 'TEST-PARTNER-B';
        	$fields['Password']->Value = 'epp-test-%2A';
			*/
        	
        	$fields['Login']->Value = 'TEST-PARTNER-C';
        	$fields['Password']->Value = 'epp-test-pwd';
        	
        	
        	$fields['ServerHost']->Value = 'diedomainer.com';
        	$fields['ServerPort']->Value = '7001';
        	
        	$Module = new EPPCHRegistryModule();
        	$Module->InitializeModule('ch', $Config);
        	
        	$this->registry = new Registry($Module);
		}