phpunit的命令行使用

Laravel本身已经配置好了phpunit运行环境,我们可以在其根目录下通过以下命令自建测试文件


phh artisan make:test Usertest
该命令会在 /tests/feature/下生成一个Usertest.php文件。


phh artisan make:test Usertest --unit
该命令会在 /tests/unit/下生成一个Usertest.php文件。
 

猜你喜欢

转载自blog.csdn.net/weixin_38996069/article/details/88713342