diff --git a/tests/thinkphp/library/think/config/ConfigInitTrait.php b/tests/thinkphp/library/think/config/ConfigInitTrait.php index 0af031f9..ce2b3977 100644 --- a/tests/thinkphp/library/think/config/ConfigInitTrait.php +++ b/tests/thinkphp/library/think/config/ConfigInitTrait.php @@ -32,11 +32,11 @@ trait ConfigInitTrait public static function setUpBeforeClass() { - self::$internalConfigFoo = \Closure::bind(function($value = null) { + self::$internalConfigFoo = \Closure::bind(function ($value = null) { return !is_null($value) ? Config::$config = $value : Config::$config; }, null, '\\Think\\Config'); - self::$internalRangeFoo = \Closure::bind(function($value = null) { + self::$internalRangeFoo = \Closure::bind(function ($value = null) { return !is_null($value) ? Config::$range = $value : Config::$range; }, null, '\\Think\\Config'); diff --git a/tests/thinkphp/library/think/controllerTest.php b/tests/thinkphp/library/think/controllerTest.php index f75bf008..fba8d6c5 100644 --- a/tests/thinkphp/library/think/controllerTest.php +++ b/tests/thinkphp/library/think/controllerTest.php @@ -17,7 +17,6 @@ namespace tests\thinkphp\library\think; use ReflectionClass; -use think\Config; use think\Controller; use think\Request; use think\View;