dsf323233323332
dsf323233323332
2011-04-05 10:30

单元测试Zend_Json_Server

已采纳

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?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • dongqiang1226 dongqiang1226 10年前

    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.

    点赞 评论 复制链接分享
  • doushi7394 doushi7394 9年前

    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.

    点赞 评论 复制链接分享

为你推荐