/** * Set up test environment * * @return void * @author Dan Cox */ public function setUp() { $this->database = new Database(); $this->entity = m::mock('EntityManager'); $this->connection = new Connection(); $config = new ConfigFile(); $config->load(__DIR__ . '/Connections/database_test1.yml'); $this->connection->load($config); }
/** * Creates and returns a Config instance * * @return ConfigFile * @author Dan Cox */ public function create($file) { $config = new ConfigFile(); $config->load($file); return $config; }