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"); }
protected function _before() { \lillockey\Utilities\App\InstanceHolder::set_config(new \lillockey\Utilities\Config\DefaultCustomConfig()); }