Esempio n. 1
0
 public function setUp()
 {
     ConnectionManager::setConfig('rox-test', array('class' => '\\rox\\test\\mocks\\active_record\\DataSource'));
 }
Esempio n. 2
0
    		'username' => 'root',
    		'password' => '',
    		'database' => 'rox_app'
    	));
    	break;
    
    case 'staging':
    	// Development database configuration
    	ConnectionManager::setConfig('default', array(
    		'host'     => '127.0.0.1',
    		'username' => 'root',
    		'password' => '',
    		'database' => 'rox_app_stage'
    	));
    	break;
    
    case 'test':
    	// Testing database configuration
    	ConnectionManager::setConfig('default', array(
    		'host'     => '127.0.0.1',
    		'username' => 'root',
    		'password' => '',
    		'database' => 'rox_app_test'
    	));
    	break;
    */
    default:
        // Development database configuration
        ConnectionManager::setConfig('default', array('host' => '127.0.0.1', 'username' => 'root', 'password' => '', 'database' => 'rox_app_dev'));
        break;
}