Open uaoleg opened 1 year ago
\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:
putObject()
\Codeception\Stub::makeEmpty( \Aws\S3\S3Client::class, [ 'putObject()' => 'result', ], );
A better solution might not be to mock it at all. What I do as a clean approach is this:
\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: