How to test / mock laravel Eloquent objects where object itself contains array items as well as sub-stdClass properties

前端 未结 0 1601
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 22:19

I\'m writing unit tests for a class that has both of these occurrences:

$eloquentobject->sub_property;

$eloquentobject[\'array item\'];

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