如何在Xampp中配置PhpUnit?

2024-04-26

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

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 安装中的位置的任何线索吗?有什么线索吗?

此致,


更新1:

我已经通过 PEAR 安装了它。好的,我看看是否有效。

此致,


你是怎么安装的?如果您使用 Xampp 附带的 pear 安装程序,它应该可以正常工作。

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

然后可执行文件应驻留在 /opt/lampp/bin/phpunit 中。

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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在Xampp中配置PhpUnit? 的相关文章

随机推荐