单元测试 Zend_Json_Server
是否有可能对 Zend_Json_Rpc 服务器进行单元测试? 或者我应该对 Json 服务器包装的底层类进行单元测试?
Is there a possibility to unittest a Zend_Json_Rpc server?
Or should I much rather unit test the underlying class that the Json server wraps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你是认真的?这不是答案!他指的是 Zend_Json_Server 的实现,我不明白为什么它如此难以理解。所以,要么你假装迟钝,让自己觉得自己很重要,要么你确实很迟钝,但令人惊讶的是,在吹捧建议的同时仍然假装优越。
致OP,如果您没有得到答复,请告诉我。我知道如何做到这一点,但正在进行谷歌搜索,看看是否有推荐的方法让我看到这篇文章。
Are you serious? That's not an answer! He means an implementation of Zend_Json_Server and I don't see how that's so terribly difficult to figure out. So either you are feigning obtuseness to make yourself feel important or you really are that obtuse but amazingly still feigning superiority while extolling advice.
to the OP, let me know if you haven't gotten an answer. I have an idea how to do it but was doing a google search to see if there's a recommended way which brought me to this post.
如果您正在进行单元测试,那么您不应该测试类的组合——而只测试一个类:完成工作的类——这就是您的类。
Zend_Json_Rpc
是框架的一部分;因此,您不是应该对其进行单元测试的人:它已经由框架的测试套件进行了测试。If you are unit-testing, you should not be testing a combinaison of classes -- but only one class : the one that does the work -- which is your class.
Zend_Json_Rpc
is part of a framework ; as such, you are not the one who should unit-test it : it's already tested by the Framework's test suite.