File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
src/TextUI/Output/Default/ProgressPrinter Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,11 @@ public function testTriggeredPhpunitDeprecation(): void
188188 $ this ->updateTestStatus (TestStatus::deprecation ());
189189 }
190190
191+ public function testTriggeredPhpunitNotice (): void
192+ {
193+ $ this ->updateTestStatus (TestStatus::notice ());
194+ }
195+
191196 public function testConsideredRisky (): void
192197 {
193198 $ this ->updateTestStatus (TestStatus::risky ());
@@ -316,6 +321,7 @@ private function registerSubscribers(Facade $facade): void
316321 new TestTriggeredPhpDeprecationSubscriber ($ this ),
317322 new TestTriggeredPhpNoticeSubscriber ($ this ),
318323 new TestTriggeredPhpunitDeprecationSubscriber ($ this ),
324+ new TestTriggeredPhpunitNoticeSubscriber ($ this ),
319325 new TestTriggeredPhpunitWarningSubscriber ($ this ),
320326 new TestTriggeredPhpWarningSubscriber ($ this ),
321327 new TestTriggeredWarningSubscriber ($ this ),
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+ /*
3+ * This file is part of PHPUnit.
4+ *
5+ * (c) Sebastian Bergmann <[email protected] > 6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+ namespace PHPUnit \TextUI \Output \Default \ProgressPrinter ;
11+
12+ use PHPUnit \Event \Test \PhpunitNoticeTriggered ;
13+ use PHPUnit \Event \Test \PhpunitNoticeTriggeredSubscriber ;
14+
15+ /**
16+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
17+ *
18+ * @internal This class is not covered by the backward compatibility promise for PHPUnit
19+ */
20+ final readonly class TestTriggeredPhpunitNoticeSubscriber extends Subscriber implements PhpunitNoticeTriggeredSubscriber
21+ {
22+ public function notify (PhpunitNoticeTriggered $ event ): void
23+ {
24+ $ this ->printer ()->testTriggeredPhpunitNotice ();
25+ }
26+ }
You can’t perform that action at this time.
0 commit comments