From f87642c6ea4925126c1ef7c393386a4d2efa78a0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 4 May 2016 18:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/dbTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/thinkphp/library/think/dbTest.php b/tests/thinkphp/library/think/dbTest.php index d3159b04..9019917e 100644 --- a/tests/thinkphp/library/think/dbTest.php +++ b/tests/thinkphp/library/think/dbTest.php @@ -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'); } }