Skip to content

Commit 3b99700

Browse files
Merge branch '10.5' into 11.2
2 parents eb893a6 + 57fd446 commit 3b99700

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/events.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,28 @@ Test
139139

140140
A test successfully asserted something
141141

142+
.. admonition:: Deprecation: ``PHPUnit\Event\Test\AssertionSucceeded`` is deprecated
143+
144+
As of PHPUnit 10.5, the ``PHPUnit\Event\Test\AssertionSucceeded`` event is deprecated.
145+
meaning its declaration is annotated with ``@deprecated`` so that IDEs and
146+
static analysis tools can warn about its usage.
147+
148+
Starting with PHPUnit 11, using the ``PHPUnit\Event\Test\AssertionSucceeded`` event
149+
is no longer emitted and can no longer be subscribed to.
150+
142151
``PHPUnit\Event\Test\AssertionFailed``
143152

144153
A test failed to assert something
145154

155+
.. admonition:: Deprecation: ``PHPUnit\Event\Test\AssertionFailed`` is deprecated
156+
157+
As of PHPUnit 10.5, the ``PHPUnit\Event\Test\AssertionFailed`` event is deprecated.
158+
meaning its declaration is annotated with ``@deprecated`` so that IDEs and
159+
static analysis tools can warn about its usage.
160+
161+
Starting with PHPUnit 11, using the ``PHPUnit\Event\Test\AssertionFailed`` event
162+
is no longer emitted and can no longer be subscribed to.
163+
146164
``PHPUnit\Event\Test\MockObjectCreated``
147165

148166
A test created a mock object

0 commit comments

Comments
 (0)