diff --git a/tests/thinkphp/library/think/modelTest.php b/tests/thinkphp/library/think/modelTest.php index 50573dd1..1f36d1ad 100644 --- a/tests/thinkphp/library/think/modelTest.php +++ b/tests/thinkphp/library/think/modelTest.php @@ -21,13 +21,12 @@ class modelTest extends \PHPUnit_Framework_TestCase { public function getConfig() { - static $config; - if (!isset($config)) { - $config = \think\Input::get('database'); - $config['database'] = 'test'; - $config['username'] = 'root'; - $config['password'] = ''; - } + $config = [ + 'type' => 'mysql', + 'database' => 'test', + 'username' => 'root', + 'password' => '', + ]; return $config; }