Let me quote the official documentation: Important gotcha on spying real objects! Sometimes it's impossible to use when(Object) for stubbing spies. Example:
確定! 回上一頁