Skip to content

Deprecate TestCase::getMockFromWsdl() #5242

@sebastianbergmann

Description

@sebastianbergmann

The getMockFromWsdl() method can be used to create a mock object based on a web service specification in WSDL format using PHP's SOAP extension.

SOAP and WSDL are not as commonly used anymore as they used to be, and even if they are, many developers have migrated from PHP's SOAP extension to alternative SOAP implementations for PHP.

To reduce complexity inside PHPUnit's test double functionality, TestCase::getMockFromWsdl() will be deprecated and then removed:

  • soft deprecation in PHPUnit 10.1 (add @deprecated annotation to the method declaration)
  • deprecation in PHPUnit 11 (using the method will trigger a deprecation)
  • removal in PHPUnit 12

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions