php 单元第一次测试 symfony [英] php unit first test symfony

查看:29
本文介绍了php 单元第一次测试 symfony的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 symfony 中设置一些测试.我正在做这方面的第一步.我的问题是我们应该从哪个文件夹编写 phpunit -c 应用程序我的意思是在 c:/或从捆绑因为我收到了内部无法识别命令的消息.

I am trying to set some tests in symfony. I am doing the first steps on that. My question is from which folder should we write the phpunit -c app I mean in c:/ or from the bundle because I get the message of the not recognised internally command.

推荐答案

您必须从应用程序的根目录运行它.app 只是一个参数,用于指定 phpunit.xml.dist 所在的文件夹.

You must run it from root direcory of your application. app is just an argument which specify folder where phpunit.xml.dist places.

这篇关于php 单元第一次测试 symfony的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆