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
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:@deprecatedannotation to the method declaration)