Skip to content

Commit

Permalink
Merge branch '8.5' into 9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 15, 2022
2 parents a814b03 + 9b5a2e5 commit b090825
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 47 deletions.
54 changes: 7 additions & 47 deletions src/Framework/TestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,74 +12,34 @@
use Throwable;

/**
* @deprecated Use the `TestHook` interfaces instead
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @deprecated
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
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;
}
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterIncompleteTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterIncompleteTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterLastTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterLastTestHook extends Hook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterRiskyTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterRiskyTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterSkippedTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterSkippedTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterSuccessfulTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterSuccessfulTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterTestErrorHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterTestErrorHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterTestFailureHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterTestFailureHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/AfterTestWarningHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface AfterTestWarningHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/BeforeFirstTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface BeforeFirstTestHook extends Hook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/BeforeTestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface BeforeTestHook extends TestHook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface Hook
{
Expand Down
6 changes: 6 additions & 0 deletions src/Runner/Hook/TestHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
namespace PHPUnit\Runner;

/**
* This interface, as well as the associated mechanism for extending PHPUnit,
* will be removed in PHPUnit 10. There is no alternative available in this
* version of PHPUnit.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @see https://github.com/sebastianbergmann/phpunit/issues/4676
*/
interface TestHook extends Hook
{
Expand Down

0 comments on commit b090825

Please sign in to comment.