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

Fix: Mark field and methods related to deprecated TestListener as deprecated #3667

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Framework/TestResult.php
Expand Up @@ -68,6 +68,8 @@ final class TestResult implements Countable
private $skipped = [];

/**
* @deprecated Use the `TestHook` interfaces instead
*
* @var TestListener[]
*/
private $listeners = [];
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down