mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
28 lines
592 B
PHP
28 lines
592 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Subscribers;
|
|
|
|
use Pest\Exceptions\AttributeNotSupportedYet;
|
|
use PHPUnit\Event\TestRunner\Configured;
|
|
use PHPUnit\Event\TestRunner\ConfiguredSubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class EnsureConfigurationIsValid implements ConfiguredSubscriber
|
|
{
|
|
/**
|
|
* Runs the subscriber.
|
|
*/
|
|
public function notify(Configured $event): void
|
|
{
|
|
$configuration = $event->configuration();
|
|
|
|
if ($configuration->processIsolation()) {
|
|
throw new AttributeNotSupportedYet('processIsolation', 'true');
|
|
}
|
|
}
|
|
}
|