mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
25 lines
525 B
PHP
25 lines
525 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Subscribers;
|
|
|
|
use Pest\Support\Container;
|
|
use PHPUnit\Event\TestRunner\Configured;
|
|
use PHPUnit\Event\TestRunner\ConfiguredSubscriber;
|
|
use PHPUnit\TextUI\Configuration\Configuration;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class EnsureConfigurationIsAvailable implements ConfiguredSubscriber
|
|
{
|
|
/**
|
|
* Runs the subscriber.
|
|
*/
|
|
public function notify(Configured $event): void
|
|
{
|
|
Container::getInstance()->add(Configuration::class, $event->configuration());
|
|
}
|
|
}
|