Skip to content

Commit

Permalink
Let AfterTestHook extend TestHook instead of Hook
Browse files Browse the repository at this point in the history
`AfterTestHook` has to extend `TestHook` instead of `Hook` to be added to the `TestListenerAdapter`, otherwise `executeAfterTest()` is never called.
  • Loading branch information
dontub authored and sebastianbergmann committed Jul 30, 2019
1 parent 9d81926 commit 1c015f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner/Hook/AfterTestHook.php
Expand Up @@ -9,7 +9,7 @@
*/
namespace PHPUnit\Runner;

interface AfterTestHook extends Hook
interface AfterTestHook extends TestHook
{
/**
* This hook will fire after any test, regardless of the result.
Expand Down

0 comments on commit 1c015f5

Please sign in to comment.