step1.install phpunit

  composer.json require中增加 

"phpunit/phpunit":"4.0.*"

   执行

1 composer update

  phpunit将被安装在vender/bin/目录下

vendor/bin/phpunit

  便执行所有单元测试,如果执行单个

vendor/bin/phpunit app/tests/ExampleTest

  将查找app/tests/ExampleTest.php执行

相关文章:

  • 2022-01-19
  • 2021-10-03
  • 2021-06-09
  • 2022-12-23
  • 2022-02-10
猜你喜欢
  • 2021-05-15
  • 2021-11-18
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-02-17
相关资源
相似解决方案