Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 24, 2023
1 parent e698247 commit 192fab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test-doubles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,15 @@ abstract class.
:caption: A test for a concrete method of an abstract class
:language: php

.. admonition:: Deprecation: ``getMockForAbstractClass()`` is deprecated

As of PHPUnit 10.1, the ``getMockForAbstractClass()`` is soft-deprecated,
meaning its declaration is annotated with ``@deprecated`` so that IDEs and
static analysis tools can warn about its usage.

Starting with PHPUnit 11, using the ``getMockForAbstractClass()`` method
will trigger a deprecation warning. The method will be removed in PHPUnit 12.

.. _test-doubles.stubbing-and-mocking-web-services:

Stubbing and Mocking Web Services
Expand Down

0 comments on commit 192fab6

Please sign in to comment.