Skip to content

Commit fcf3cc5

Browse files
authored
Merge pull request #8 from sleep666/patch-3
单元测试时控制器加属性注解报错
2 parents 874cb6b + 702bffd commit fcf3cc5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/bootstrap.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@
1010
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
1111
*/
1212

13+
ini_set('display_errors', 'on');
14+
ini_set('display_startup_errors', 'on');
15+
1316
error_reporting(E_ALL);
17+
date_default_timezone_set('Asia/Shanghai');
1418

1519
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
1620

17-
\Swoole\Runtime::enableCoroutine(true);
21+
Swoole\Runtime::enableCoroutine(true);
1822

1923
require BASE_PATH . '/vendor/autoload.php';
2024

21-
require BASE_PATH . '/config/container.php';
25+
$container = require BASE_PATH . '/config/container.php';
26+
27+
$container->get(Hyperf\Contract\ApplicationInterface::class);

0 commit comments

Comments
 (0)