如何在Laravel项目中安装PHPunit

问题描述 投票:3回答:1

我正在尝试在Laravel项目中设置PHPunit(使用Vagrant和VirtualBox在Linux VM中运行)。我已经将PHPunit添加到composer.json并运行composer installcomposer update,但是没有任何工作。从命令行运行phpunit什么都不做。 (也不是php phpunitphp phpunit.phar。)

如何让PHPunit运行我的测试?

php laravel laravel-4 phpunit
1个回答
13
投票

您现在必须使用以下命令运行它

vendor/bin/phpunit
© www.soinside.com 2019 - 2024. All rights reserved.