Skip to content
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

Deprecate TestCase::getMockFromWsdl() #5242

Closed
sebastianbergmann opened this issue Feb 23, 2023 · 0 comments
Closed

Deprecate TestCase::getMockFromWsdl() #5242

sebastianbergmann opened this issue Feb 23, 2023 · 0 comments
Assignees
Labels
feature/test-doubles Test Stubs and Mock Objects type/deprecation Something will be/is deprecated
Milestone

Comments

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Feb 23, 2023

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
@sebastianbergmann sebastianbergmann added type/backward-compatibility Something will be/is intentionally broken feature/test-doubles Test Stubs and Mock Objects labels Feb 23, 2023
@sebastianbergmann sebastianbergmann added this to the PHPUnit 11.0 milestone Feb 23, 2023
@sebastianbergmann sebastianbergmann self-assigned this Feb 23, 2023
sebastianbergmann added a commit to sebastianbergmann/phpunit-documentation-english that referenced this issue Feb 24, 2023
@sebastianbergmann sebastianbergmann changed the title Deprecate TestCase::getMockFromWsdl() Deprecate TestCase::getMockFromWsdl() Mar 6, 2023
@sebastianbergmann sebastianbergmann added type/deprecation Something will be/is deprecated and removed type/backward-compatibility Something will be/is intentionally broken labels Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-doubles Test Stubs and Mock Objects type/deprecation Something will be/is deprecated
Projects
None yet
Development

No branches or pull requests

1 participant