如何在phing中使用phpunit?
据 像这样在phing中使用phpunit.xml应该是可行的如何在phing中使用phpunit?,php,xml,configuration,phpunit,phing,Php,Xml,Configuration,Phpunit,Phing,据 像这样在phing中使用phpunit.xml应该是可行的 <phpunit configuration="./phpunit.xml"> 但它是老鼠,不知道为什么 像这样的xml <target name="test" description="Run PHPUnit tests" depends="prepare"> <phpunit printsummary="true" configuration="./phpunit.x
<phpunit configuration="./phpunit.xml">
但它是老鼠,不知道为什么
像这样的xml
<target name="test" description="Run PHPUnit tests" depends="prepare">
<phpunit printsummary="true" configuration="./phpunit.xml" pharlocation="${pharlocation.dir}" ><!--configuration="./phpunit.xml"-->
<formatter type="xml" todir="${xmlreport.dir}" outfile="${reportxml.dir}"/>
</phpunit>
<phpunitreport infile="${xmlreport.dir}/${reportxml.dir}" format="noframes" todir="${htmlreport.dir}" styledir="${xsl.dir}" />
</target>
运行结果如下,phpunit不运行。我确认phing已找到phpuntil.xml,当我将名称更改为错误名称时,phing将提示文件不存在
自动测试>准备:
自动测试>测试:
[phpunit]运行的测试总数:0,失败数:0,错误数:0,未完成数:0,
跳过:0,经过的时间:0.00033秒
建成
总时间:0.5406秒
您的Phing版本与最新的PHPUnit命名空间不兼容,请将Phing更新到v3 资料来源:
phing--verbose
查看运行什么phpunit命令欢迎使用SO。请不要发布代码或代码图像的链接——如果代码在图像文件中,没有人可以复制代码来使用它。阅读了解有关设置问题格式的更多信息。您可以将代码粘贴到问题中,选择它,然后点击“{}”按钮缩进代码块。您可能会仔细阅读讨论的主题。使用phing--verbose
查看运行了什么phpunit命令