Codeception / Codeception/Stub
Can't mock magic methods for \Aws\S3\S3Client
- Ngôn ngữ chính
- PHP
- Star
- 301
- Fork
- 19
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
\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',
],
);
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start at Codeception\Stub::makeEmpty and trace how the supplied putObject() entry is interpreted for an Aws\S3\S3Client. Reproduce the mocking case, then verify that explicit method syntax is handled as a method while existing property stubbing remains unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, php
- Lĩnh vực
- testing
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100