| Q |
A |
| PHPUnit version |
9.4.4 |
| PHP version |
7.4.12 |
| Installation Method |
Composer |
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
protected function setUp(): void
{
parent::setUp();
$this->soapclient = $this->getMockFromWsdl(__DIR__ . '/../../data/wsdl/mantis.wsdl');
...
Expected behavior
SoapClient should be created without error.
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.