Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Received *::__construct() but no expectations were specified #1416

@ghostwriter

Description

@ghostwriter

Ever since 1.6.8 all my test suite fails. If I revert to 1.6.7 everything is fine.

On 1.6.8-1.6.11 I get multiple times this error :

Mockery\Exception\BadMethodCallException: Received Mockery_32_VMU_FileUpload::__construct(), but no expectations were specified

For each of my mocks used.

Is this an intended change ? Do I now need to set an expectation for __construct ? That seems a bit excessive and counter-productive.

Originally posted by @icemouton in #1394 (comment)

Metadata

Metadata

Assignees

Labels

triageneeds to be triaged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions