Skip to content

Commit

Permalink
fix: use TestScanHandler in tests/bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
albertcht committed Sep 15, 2024
1 parent e220bda commit a61032c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

declare(strict_types=1);

use SwooleTW\Hyperf\Foundation\Testing\TestScanHandler;

ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');

Expand All @@ -13,7 +16,7 @@

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

Hyperf\Di\ClassLoader::init();
Hyperf\Di\ClassLoader::init(null, null, new TestScanHandler());

$app = require BASE_PATH . '/bootstrap/app.php';

Expand Down

0 comments on commit a61032c

Please sign in to comment.