Skip to content

Commit 981ff03

Browse files
committed
优化加载效率
1 parent cfbb09d commit 981ff03

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/command/Test.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414

1515
use PHPUnit_TextUI_Command;
16+
use PHPUnit_Util_Blacklist;
1617
use think\console\command\Command;
1718
use think\console\Input;
1819
use think\console\Output;
@@ -35,9 +36,12 @@ public function execute(Input $input, Output $output)
3536
$argv = $_SERVER['argv'];
3637
array_shift($argv);
3738
array_shift($argv);
38-
array_unshift($argv,'phpunit');
39+
array_unshift($argv, 'phpunit');
40+
PHPUnit_Util_Blacklist::$blacklistedClassNames = [];
3941

40-
(new PHPUnit_TextUI_Command())->run($argv);
42+
$code = (new PHPUnit_TextUI_Command())->run($argv, false);
43+
44+
return $code;
4145
}
4246

4347
}

0 commit comments

Comments
 (0)