如何在Xampp中配置PhpUnit? [英] How to configure PhpUnit in Xampp?

查看:63
本文介绍了如何在Xampp中配置PhpUnit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Xampp中成功安装了PhpUnit,现在我需要对其进行配置,我需要从文档中执行以下步骤:

I have successfully installed PhpUnit in Xampp, now I need to configure it, i need to take this steps from the documentation:

2. Prepare the phpunit script:
   1.
      Rename the phpunit.php script to phpunit.
   2.
      Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
   3.
      Copy it to a directory that is in your path and make it executable (chmod +x phpunit).


3. Prepare the PHPUnit/Util/PHP.php script:
   1.
      Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).

我在PEAR目录中找不到phpunit.php.关于在PhpUnit的Xampp安装上此文件在哪里的任何线索?有任何线索吗?

I can't find phpunit.php in the PEAR directory. Any clues on where is this file on a Xampp installation of PhpUnit? Any clues?

最好的问候

Update1:​​

Update1:

我已经通过PEAR安装了它.好的,我看看是否行得通.

I have install it via PEAR. Ok, I will see if that work.

最好的问候,

推荐答案

如何安装?如果您使用Xampp随附的pear安装程序,那么它应该可以正常工作.

How did you install it ? If you use the pear installer that is shipped with Xampp it should just work.

/opt/lampp/bin/pear channel-discover pear.phpunit.de
/opt/lampp/bin/pear install phpunit/PHPUnit

,然后可执行文件应位于/opt/lampp/bin/phpunit中.

and the executable should then reside in /opt/lampp/bin/phpunit.

如果您以其他方式安装它(将文件复制?,很抱歉,我没有在xampp文档中找到其他提示),那么请指向我,我会编辑答案

If you installed it in another way (coping the files ?, sry i didn't find other hints in the xampp docs) then just point me to it and i will edit the answer

这篇关于如何在Xampp中配置PhpUnit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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