mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
24 lines
427 B
PHP
24 lines
427 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Subscribers;
|
|
|
|
use Pest\TestSuite;
|
|
use PHPUnit\Event\TestRunner\Started;
|
|
use PHPUnit\Event\TestRunner\StartedSubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class EnsureRetryRepositoryExists implements StartedSubscriber
|
|
{
|
|
/**
|
|
* Runs the subscriber.
|
|
*/
|
|
public function notify(Started $event): void
|
|
{
|
|
TestSuite::getInstance()->retryRepository->boot();
|
|
}
|
|
}
|