We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfbb09d commit 981ff03Copy full SHA for 981ff03
src/command/Test.php
@@ -13,6 +13,7 @@
13
14
15
use PHPUnit_TextUI_Command;
16
+use PHPUnit_Util_Blacklist;
17
use think\console\command\Command;
18
use think\console\Input;
19
use think\console\Output;
@@ -35,9 +36,12 @@ public function execute(Input $input, Output $output)
35
36
$argv = $_SERVER['argv'];
37
array_shift($argv);
38
- array_unshift($argv,'phpunit');
39
+ array_unshift($argv, 'phpunit');
40
+ PHPUnit_Util_Blacklist::$blacklistedClassNames = [];
41
- (new PHPUnit_TextUI_Command())->run($argv);
42
+ $code = (new PHPUnit_TextUI_Command())->run($argv, false);
43
+
44
+ return $code;
45
}
46
47
0 commit comments