-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move interruption at PreparationStarted event
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
/** | ||
|
@@ -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(); | ||
|
||
|