-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Type error on using getMockFromWsdl() #4535
Comments
btw: was working before upgrading from PHPUnit 7.5 |
Some further digging I found this stack trace - maybe this helps:
The error seems to happen with the soap method "mc_version" which has no parameters. |
Are you sure you use PHPUnit 9.4? The |
Yes - I am pretty sure to use version 9.4.4. The output confirms that:
The path is now more obivous since I changed:
to
However the error still persists, because line 416 in phpunit-9.4.4-0/src/Framework/MockObject/Generator.php still says:
and does not include the changes you mention from the commit above. |
075d8ee has not made it into a release yet, correct. |
Summary
Type error from getMockFromWsdl()
Current behavior
Test exists with: "substr() expects parameter 2 to be int, bool given"
How to reproduce
Create a mock SOAP client with the attached WSDL file.
mantis.wsdl.zip
Expected behavior
SoapClient should be created without error.
The text was updated successfully, but these errors were encountered: