We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Phockito::verify($obj)->staticMethodName()
This will always have 0 calls on the instance if the method is a static method, in the generated code.
Use Phockito::when($obj->staticMethodName()) to create a mock (with the call inside when(....))
Phockito::when($obj->staticMethodName())
when(....)
PHP allows calling static methods on the instance.
Phockito::when($obj->staticMethodName())... is mocking the static method instead and calls will be recorded as 'instance' => "::$className"
Phockito::when($obj->staticMethodName())...
__phockito_setMethod should check if the method of the class is static (cache the result)
And the verification should perform the same check
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This will always have 0 calls on the instance if the method is a static method, in the generated code.
Use
Phockito::when($obj->staticMethodName())
to create a mock (with the call insidewhen(....)
)PHP allows calling static methods on the instance.
Phockito::when($obj->staticMethodName())...
is mocking the static method instead and calls will be recorded as 'instance' => "::$className"__phockito_setMethod should check if the method of the class is static (cache the result)
And the verification should perform the same check
The text was updated successfully, but these errors were encountered: