Skip to content

Type error on using getMockFromWsdl() #4535

@bretrzaun

Description

@bretrzaun
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.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions