http://four.laravel.com/docs/testing表示"安装新的Laravel应用程序后,只需在命令行上运行phpunit
即可运行测试."
phpunit
isn't recognized, I also tried php artisian test
and php artisan phpunit
phpunit
是在某个奇怪的文件夹中,还是它实际上不包含在Laravel中?我不想安装它,如果是的话,我想安装两个.
http://four.laravel.com/docs/testing表示"安装新的Laravel应用程序后,只需在命令行上运行phpunit
即可运行测试."
phpunit
isn't recognized, I also tried php artisian test
and php artisan phpunit
phpunit
是在某个奇怪的文件夹中,还是它实际上不包含在Laravel中?我不想安装它,如果是的话,我想安装两个.
使用PHPUnit启动和运行的一个简单方法是将其包含在您的composer中(无需安装Pear,也无需将每个系统都弄得杂乱无章).json文件,比如
"phpunit/phpunit": "4.0.*",
Then after doing a composer update
you'll be able to run PHPUnit from command line like this:
vend或/bin/phpunit
Since phpunit will be installed into the vend或/bin folder.
This will install PHPUnit to this project only, not your whole system. So when you want it gone, you simply remove the line from your composer.json file, run composer update, and poof, not a trace.
如果您只想在开发过程中使用它,请在"require dev"部分中添加composer行.这样,只有当您 Select 通过以下方式安装依赖于开发人员的设备时,才会安装:
php composer.phar install --dev
或
php composer.phar update