Codeception / Codeception/Stub
Can't mock magic methods for \Aws\S3\S3Client
Ouverte
- Langage dominant
- PHP
- Étoiles
- 301
- Forks
- 19
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
\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',
],
);
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.