Skip to content

Commit

Permalink
Use another hook
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Apr 15, 2022
1 parent a742ca8 commit 06292af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

namespace Xepozz\InternalFunctionMocker\Tests;

use PHPUnit\Runner\AfterTestHook;
use PHPUnit\Runner\BeforeFirstTestHook;
use PHPUnit\Runner\BeforeTestHook;
use Xepozz\InternalFunctionMocker\Mocker;
use Xepozz\InternalFunctionMocker\MockerState;

final class Listener implements BeforeFirstTestHook, AfterTestHook
final class Listener implements BeforeFirstTestHook, BeforeTestHook
{
public function executeBeforeFirstTest(): void
{
Expand Down Expand Up @@ -48,7 +48,7 @@ public function executeBeforeFirstTest(): void
MockerState::saveState();
}

public function executeAfterTest(string $test, float $time): void
public function executeBeforeTest(string $test): void
{
MockerState::resetState();
}
Expand Down

0 comments on commit 06292af

Please sign in to comment.