Codeception / Codeception/Stub
Can't mock magic methods for \Aws\S3\S3Client
Aperta
- Lingua principale
- PHP
- Stelle
- 301
- Fork
- 19
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
\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',
],
);
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.