Skip to content

Commit

Permalink
Closes #3389
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 19, 2020
1 parent ed3ce70 commit 5a95748
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 238 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi

### Removed

* [#3389](https://github.com/sebastianbergmann/phpunit/issues/3389): Removed `PHPUnit\Framework\TestListener` and `PHPUnit\Framework\TestListenerDefaultImplementation`
* [#3631](https://github.com/sebastianbergmann/phpunit/issues/3631): Remove support for `"ClassName<*>"` as values for `@covers` and `@uses` annotations
* [#3769](https://github.com/sebastianbergmann/phpunit/issues/3769): Remove `MockBuilder::setMethods()` and `MockBuilder::setMethodsExcept()`
* [#3777](https://github.com/sebastianbergmann/phpunit/issues/3777): Remove `PHPUnit\Framework\Error\*` classes
Expand Down
49 changes: 1 addition & 48 deletions src/Framework/TestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,74 +12,27 @@
use Throwable;

/**
* @deprecated Use the `TestHook` interfaces instead
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
* @internal
*/
interface TestListener
{
/**
* An error occurred.
*
* @deprecated Use `AfterTestErrorHook::executeAfterTestError` instead
*/
public function addError(Test $test, Throwable $t, float $time): void;

/**
* A warning occurred.
*
* @deprecated Use `AfterTestWarningHook::executeAfterTestWarning` instead
*/
public function addWarning(Test $test, Warning $e, float $time): void;

/**
* A failure occurred.
*
* @deprecated Use `AfterTestFailureHook::executeAfterTestFailure` instead
*/
public function addFailure(Test $test, AssertionFailedError $e, float $time): void;

/**
* Incomplete test.
*
* @deprecated Use `AfterIncompleteTestHook::executeAfterIncompleteTest` instead
*/
public function addIncompleteTest(Test $test, Throwable $t, float $time): void;

/**
* Risky test.
*
* @deprecated Use `AfterRiskyTestHook::executeAfterRiskyTest` instead
*/
public function addRiskyTest(Test $test, Throwable $t, float $time): void;

/**
* Skipped test.
*
* @deprecated Use `AfterSkippedTestHook::executeAfterSkippedTest` instead
*/
public function addSkippedTest(Test $test, Throwable $t, float $time): void;

/**
* A test suite started.
*/
public function startTestSuite(TestSuite $suite): void;

/**
* A test suite ended.
*/
public function endTestSuite(TestSuite $suite): void;

/**
* A test started.
*
* @deprecated Use `BeforeTestHook::executeBeforeTest` instead
*/
public function startTest(Test $test): void;

/**
* A test ended.
*
* @deprecated Use `AfterTestHook::executeAfterTest` instead
*/
public function endTest(Test $test, float $time): void;
}
124 changes: 0 additions & 124 deletions tests/_files/MyTestListener.php

This file was deleted.

66 changes: 0 additions & 66 deletions tests/unit/Framework/TestListenerTest.php

This file was deleted.

0 comments on commit 5a95748

Please sign in to comment.