示例#1
0
 public function setUp()
 {
     Configure::database(function ($config) {
         $config->default = 'db';
         $config->set(['db' => ['driver' => 'mysql', 'host' => 'localhostf', 'port' => '', 'database' => 'foo_bar', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci']]);
     });
 }