PHP 单元测试

发布于 2024-08-12 09:54:48 字数 1459 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

り繁华旳梦境 2024-08-19 09:54:48

Simpletest

实际上这里是所有常见 PHP 单元测试框架的列表。

我想你会发现测试框架本身对开发花哨的 GUI 没什么兴趣。但是,您可以查看一些第三方工具/应用程序/插件。我经常在 Netbeans 中使用 phpunit 集成,而且效果非常好。

Simpletest

Actually here is a list of all the common PHP unit testing frameworks.

I think you will find that the testing frameworks themselves have little interest in developing fancy GUIs. There is however several third party tools/applications/plugins that you can checkout. I use the phpunit integration within Netbeans a lot, and it works very good.

长伴 2024-08-19 09:54:48

要求它是

不基于命令行

很好奇。在传统的 PHP 开发中,您进行编辑,在浏览器中加载网页,然后重复。相反,您可以进行编辑,在命令行运行测试套件的一部分,然后重复。我发现后一种练习通常要快得多。

The requirement that it be

not command line based

is curious. In traditional PHP development you make an edit, load a webpage in your browser, and repeat. Instead, you can make an edit, run a piece of your test suite at the command line, then repeat. I have discovered the latter practice is usually much faster.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文