Esempio n. 1
0
 public function testRun()
 {
     $config = Mad_Madness_Initializer::run();
     $this->assertType('Mad_Madness_Configuration', $config);
 }
Esempio n. 2
0
<?php

// Bootstrap the Rails environment, frameworks, and default configuration
require_once 'boot.php';
$config = Mad_Madness_Initializer::run();
// cache table structure to /tmp/cache/tables
$config->model->cacheTables = true;
// Settings in config/environments/* take precedence those specified above
require_once 'environments/' . MAD_ENV . '.php';
$config->end();