From 7fd70bca2730cd93f573152f08a6422675abe741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 28 Apr 2019 19:46:04 +0200 Subject: [PATCH] Fix: Mark field and methods related to deprecated TestListener as deprecated --- src/Framework/TestResult.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Framework/TestResult.php b/src/Framework/TestResult.php index e49a356c391..e315b97c985 100644 --- a/src/Framework/TestResult.php +++ b/src/Framework/TestResult.php @@ -68,6 +68,8 @@ final class TestResult implements Countable private $skipped = []; /** + * @deprecated Use the `TestHook` interfaces instead + * * @var TestListener[] */ private $listeners = []; @@ -214,6 +216,10 @@ public static function isAnyCoverageRequired(TestCase $test): bool } /** + * @deprecated Use the `TestHook` interfaces instead + * + * @codeCoverageIgnore + * * Registers a TestListener. */ public function addListener(TestListener $listener): void @@ -222,6 +228,10 @@ public function addListener(TestListener $listener): void } /** + * @deprecated Use the `TestHook` interfaces instead + * + * @codeCoverageIgnore + * * Unregisters a TestListener. */ public function removeListener(TestListener $listener): void @@ -234,6 +244,10 @@ public function removeListener(TestListener $listener): void } /** + * @deprecated Use the `TestHook` interfaces instead + * + * @codeCoverageIgnore + * * Flushes all flushable TestListeners. */ public function flushListeners(): void