Codeception / Codeception/Stub
Can't mock magic methods for \Aws\S3\S3Client
未关闭
- 主要语言
- PHP
- 星标
- 301
- 派生
- 19
- PR 合并指标
- 30 天内没有已合并 PR
描述
\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',
],
);
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 Codeception\Stub::makeEmpty 开始,跟踪所提供的 putObject() 条目如何针对 Aws\S3\S3Client 进行解释。复现该 mocking 场景,然后验证显式方法语法会被作为方法处理,同时现有的属性 stubbing 保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, php
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100