阅读背景:

如何在PHP中对具有依赖项的方法进行单元测试?

来源:互联网 

I have a method with some logic in it and I'm not sure how to unit test it. Because it's a unit test for this specific method it should run without connecting to the database. I read about stubs and mockups but I can't find a way to apply them to this situation.I have a method with some logic in it and I'm n




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: