Skip to content

Commit

Permalink
move interruption at PreparationStarted event
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Ešler committed Jul 11, 2023
1 parent 191ab7f commit fe058d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PHPUnit/GracefulInterruptSubscriber.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Esler\PHPUnit;

use PHPUnit\Event\Test\PreparedSubscriber;
use PHPUnit\Event\Test\Prepared;
use PHPUnit\Event\Test\PreparationStartedSubscriber;
use PHPUnit\Event\Test\PreparationStarted;
use PHPUnit\Framework\Assert;

/**
Expand All @@ -14,11 +14,11 @@
* @author Ondrej Esler <[email protected]>
* @license MIT
*/
final class GracefulInterruptSubscriber implements PreparedSubscriber
final class GracefulInterruptSubscriber implements PreparationStartedSubscriber
{
public bool $interrupted = false;

public function notify(Prepared $event): void
public function notify(PreparationStarted $event): void
{
pcntl_signal_dispatch();

Expand Down

0 comments on commit fe058d1

Please sign in to comment.