verifyInvokedMultipleTimes and ArgumentFormatter formats an object in an array with __set_state
还没有人认领这个 Issue。
评估
调研方向
首先阅读 ArgumentFormatter 和 verifyInvokedMultipleTimes 路径,然后使用包含对象的数组重现比较。确认 var_export 会生成 __set_state,并将完成定义为:验证不再仅仅因为数组参数中的对象以这种方式格式化而失败。
由索引模型根据 Issue 内容生成。
描述
Hi,
Im having an issue where im checking if a function is being call with the correct params, but one of my params is an array with objects in it. the what the ArgumentFormatter handles arrays is but calling var_export but this changes the objects/classes into the __set_state resulting the verify to fail
My current version of aspect mock:
name : codeception/aspect-mock
descrip. : Experimental Mocking Framework powered by Aspects
keywords :
versions : * 3.0.2
type : library
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source : [git] https://github.com/Codeception/AspectMock.git 130afd10a3d8131d267f393ee1ec322e3e583d67
dist : [zip] https://api.github.com/repos/Codeception/AspectMock/zipball/130afd10a3d8131d267f393ee1ec322e3e583d67 130afd10a3d8131d267f393ee1ec322e3e583d67
path : /var/www/html/billing/vendor/codeception/aspect-mock
names : codeception/aspect-mock
- 主要语言
- PHP
- 星标
- 784
- 派生
- 132
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeception/AspectMock 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 35/100
Codeception/AspectMock#208 · 2 条评论 · 5 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 25/100
Codeception/AspectMock#206 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/AspectMock#203 ·
-
难度 1/5 1 小时以内 新手友好度 35/100
Codeception/AspectMock#202 · 5 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 42/100
Codeception/AspectMock#201 · 1 条评论 ·
查看 Codeception/AspectMock 的全部 Issue
相似的 Issue
-
sync-en
难度 2/5 1-3 小时 新手友好度 88/100
-
sync-en
难度 2/5 1-3 小时 新手友好度 84/100
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 78/100
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
az-digital/az_quickstart#6047 ·
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 72/100