Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getDouble() causes MethodCannotBeConfiguredException #6

Merged
merged 2 commits into from
Sep 30, 2021

Conversation

kenjis
Copy link
Owner

@kenjis kenjis commented Sep 30, 2021

If you write code like this:

$customerInfoRepository = $this->getDouble(CustomerInfoRepository::class, []);
$this->verifyInvokedOnce($customerInfoRepository, 'save');

You see the error:

PHPUnit\Framework\MockObject\MethodCannotBeConfiguredException: Trying to configure method "xxx" which cannot be configured because it does not exist, has not been specified, is final, or is static

…method name

PHPUnit\Framework\MockObject\MethodCannotBeConfiguredException: Trying to configure method "xxx" which cannot be configured because it does not exist, has not been specified, is final, or is static
NPath complexity was 216.
@kenjis kenjis merged commit d79bfff into 1.x Sep 30, 2021
@kenjis kenjis deleted the fix-getDouble branch September 30, 2021 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant