Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * Creates and returns a Config instance
  *
  * @return ConfigFile
  * @author Dan Cox
  */
 public function create($file)
 {
     $config = new ConfigFile();
     $config->load($file);
     return $config;
 }