Skip to content

Commit fe058d1

Browse files
author
Ondřej Ešler
committed
move interruption at PreparationStarted event
1 parent 191ab7f commit fe058d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PHPUnit/GracefulInterruptSubscriber.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
namespace Esler\PHPUnit;
33

4-
use PHPUnit\Event\Test\PreparedSubscriber;
5-
use PHPUnit\Event\Test\Prepared;
4+
use PHPUnit\Event\Test\PreparationStartedSubscriber;
5+
use PHPUnit\Event\Test\PreparationStarted;
66
use PHPUnit\Framework\Assert;
77

88
/**
@@ -14,11 +14,11 @@
1414
* @author Ondrej Esler <esler.ondrej@gmail.com>
1515
* @license MIT
1616
*/
17-
final class GracefulInterruptSubscriber implements PreparedSubscriber
17+
final class GracefulInterruptSubscriber implements PreparationStartedSubscriber
1818
{
1919
public bool $interrupted = false;
2020

21-
public function notify(Prepared $event): void
21+
public function notify(PreparationStarted $event): void
2222
{
2323
pcntl_signal_dispatch();
2424

0 commit comments

Comments
 (0)