diff --git a/tests/thinkphp/library/think/dbTest.php b/tests/thinkphp/library/think/dbTest.php new file mode 100644 index 00000000..d3159b04 --- /dev/null +++ b/tests/thinkphp/library/think/dbTest.php @@ -0,0 +1,28 @@ + +// +---------------------------------------------------------------------- + +/** + * Db类测试 + */ + +namespace tests\thinkphp\library\think; + +use \think\Db; + +class dbTest extends \PHPUnit_Framework_TestCase +{ + public function testConnect() + { + Db::connect('mysql://root@127.0.0.1/test#utf8'); + Db::execute('show databases'); + } + +}