douzhangshao6369 2014-03-21 23:58
浏览 241
已采纳

如何在Laravel项目中安装PHPunit

I'm trying to set up PHPunit in a Laravel project (which is being running in a Linux VM using Vagrant and VirtualBox). I've added PHPunit to composer.json and run composer install and composer update, and yet nothing is working. Running phpunit from the command line does nothing. (Nor does php phpunit or php phpunit.phar.)

How do I get PHPunit to run my tests?

  • 写回答

2条回答 默认 最新

  • doumin1897 2014-03-22 00:55
    关注

    You must now run it using:

    vendor/bin/phpunit
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?