예제 #1
0
 public function testDB()
 {
     \lillockey\Utilities\App\InstanceHolder::set_config(new \lillockey\Utilities\Config\FullCustomConfig('localhost', 'root', null, 'test'));
     $db = \lillockey\Utilities\App\InstanceHolder::db();
     //Records
     $records = $db->select_all('test');
     $this->assertTrue(sizeof($records) == 2, "Select all against 2 records");
 }
예제 #2
0
 protected function _before()
 {
     \lillockey\Utilities\App\InstanceHolder::set_config(new \lillockey\Utilities\Config\DefaultCustomConfig());
 }