Skip to content

Can't mock magic methods for \Aws\S3\S3Client #45

@uaoleg

Description

@uaoleg

\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',
    ],
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions