找到phpunit.bat,内容如下

set PHPBIN="@php_bin@"
%PHPBIN% "@bin_dir@\phpunit" %*

 

修改为

set PHPBIN="C:\Program Files\PHP\php.exe"
%PHPBIN% "D:\your\phpunit_home\phpunit.php" %*
 

最后将"D:\your\phpunit_home\phpunit.php"添加到环境变量path后面,就可以在命令行中使用phpunit了。

PHPUnit 3.4.10在linux上的配置,可以参考下面这篇文章

PHPUnit学习01---Linux配置PHPUnit

相关文章:

  • 2021-05-19
  • 2021-05-19
  • 2021-12-04
  • 2022-12-23
  • 2021-05-31
  • 2021-12-03
  • 2021-11-22
猜你喜欢
  • 2021-11-21
  • 2021-05-23
  • 2021-09-19
  • 2021-07-05
  • 2021-11-11
相关资源
相似解决方案