Can't mock magic methods for \Aws\S3\S3Client
还没有人认领这个 Issue。
评估
调研方向
从 Codeception\Stub::makeEmpty 开始,跟踪所提供的 putObject() 条目如何针对 Aws\S3\S3Client 进行解释。复现该 mocking 场景,然后验证显式方法语法会被作为方法处理,同时现有的属性 stubbing 保持不变。
由索引模型根据 Issue 内容生成。
描述
\Aws\S3\S3Client has way too many magic, e.g. for method putObject()
So when I try to mock this method it's treated as a property. Possible solution is to explicitly specify if it's a method or a property:
\Codeception\Stub::makeEmpty(
\Aws\S3\S3Client::class,
[
'putObject()' => 'result',
],
);
- 主要语言
- PHP
- 星标
- 301
- 派生
- 19
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeception/Stub 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 68/100
Codeception/Stub#61 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/Stub#36 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Codeception/Stub#30 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 48/100
Codeception/Stub#7 · 5 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 48/100
Codeception/Stub#31 · 3 条评论 ·
相似的 Issue
-
product / auth product / databases product / sites product / vcs
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
backend enhancement good first issue php
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
`Batch_Error_NotifierTest::test_does_not_send_duplicate_to_same_email` — errors on WordPress nightly未关闭
难度 2/5 1-3 小时 新手友好度 78/100
google/site-kit-wp#13702 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
doctrine/collections#554 · 1 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 90/100
Automattic/static-site-importer#1859 ·
维护者通常 1 天内回复