mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正单元测试
This commit is contained in:
@@ -21,8 +21,7 @@ class dbTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testConnect()
|
||||
{
|
||||
Db::connect('mysql://root@127.0.0.1/test#utf8');
|
||||
Db::execute('show databases');
|
||||
Db::connect('mysql://root@127.0.0.1/test#utf8')->execute('show databases');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user