CodeIgniter 2.0 / PHPUnit 已经出现了吗?
所以我刚刚度过了一个非常令人失望的早晨/周末。它以设置 PHPUnit、集成 Eclipse 等形式出现。
现在我刚刚发现没有直接从 PHPUnit 测试 CodeIgniter 2.0 应用程序的简单方法。
我花了很多时间研究库(FooStack 和 CIUnit),但这些库的开发已经停止,并且与 CI 2.0 不兼容。
在我进入包含的 2.0 单元测试课程之前,我需要问一下,我是否错过了围绕 CI 2.0 和 PHPUnit 的任何重大开发。
非常感谢任何指导。
谢谢, 康纳
So i've just had a pretty disappointing morning/weekend. It came in the form of setting up PHPUnit, Integrating Eclipse etc
Now i've just discovered that there's no straightforward way to test CodeIgniter 2.0 applications directly from PHPUnit.
I've spent a lot of time researching libraries (FooStack and CIUnit) but the development of these has ceased and aren't compatible with CI 2.0
Before I jump in the inlcuded 2.0 Unit Testing class I need to ask, have I missed out on any major developments around CI 2.0 and PHPUnit.
Any guidance greatly appreciated.
Thanks,
Conor
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
给对此感兴趣的任何人一个快速说明。 Ellis Labs 目前正在 CodeIgniter Reactor 中支持 PHPUnit。下一个版本应该有它..参考:ellislab.com/forums/viewthread/187601
A quick note to anybody interested in this. Ellis Labs are currently baking support for PHPUnit in CodeIgniter Reactor. The next release should have it.. Ref: ellislab.com/forums/viewthread/187601
我找到了一些您可能会觉得有用的资源。
为集成 PHPunit 和 Codeigniter 而编写的类。这不是一个非常有趣的论坛帖子,但它引导我到下一个链接。
http://codeigniter.com/forums/viewthread/70934/P60
但是,存储库在上面的链接中找到的看起来不太活跃。它的这个分支似乎更活跃一些:
https://bitbucket.org/kenjis/my-ciunit
I found a few resources you may find useful.
A class written to integrate PHPunit and Codeigniter. Not a very interesting forum post, but it lead me to the next link.
http://codeigniter.com/forums/viewthread/70934/P60
However, the repository found in the link above doesn't look very active. This fork of it seems to be a little more active:
https://bitbucket.org/kenjis/my-ciunit