Testing objects with dependencies in PHPUnit

后端 未结 0 622
孤城傲影
孤城傲影 2021-02-08 16:55

For objects which compose another object as part of their implementation, what\'s the best way to write the unit test so only the principle object gets tested? Trivial example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题