Skip to content

Commit

Permalink
Fix: Mark field and methods related to deprecated TestListener as dep…
Browse files Browse the repository at this point in the history
…recated
  • Loading branch information
localheinz authored and sebastianbergmann committed Apr 29, 2019
1 parent dcdbda6 commit f95d7ce
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit f95d7ce

Please sign in to comment.