getId(); } public function testUnleashConfiguration(): void { $instance = new UnleashConfiguration('', '', ''); $instance->setAppName('test'); $instance->setInstanceId('test'); } public function testUnleashContext(): void { $instance = new UnleashContext(); $instance->getCustomProperties(); } public function testDefaultVariant(): void { $instance = new DefaultVariant('test', true); $instance->getPayload(); } public function testDefaultVariantPayload(): void { $instance = new DefaultVariantPayload(VariantPayloadType::STRING, 'test'); $instance->getType(); } public function testFeatureToggleDisabledEvent(): void { $instance = new FeatureToggleDisabledEvent( new DefaultFeature('test', false, []), new UnleashContext() ); $instance->getFeature(); $instance->getContext(); } public function testFeatureToggleMissingStrategyHandlerEvent(): void { $instance = new FeatureToggleMissingStrategyHandlerEvent( new UnleashContext(), new DefaultFeature('test', false, []) ); $instance->getContext(); $instance->getFeature(); } public function testFeatureToggleNotFoundEvent(): void { $instance = new FeatureToggleNotFoundEvent( new UnleashContext(), 'test' ); $instance->getContext(); $instance->getFeatureName(); } public function testCompoundException(): void { $instance = new CompoundException(); $instance->getExceptions(); } public function testGetEventDispatcher() { $configuration = function () { return (new UnleashConfiguration('', '', '')) ->setFetchingEnabled(false); }; $configurationEventDispatcher = $configuration()->setEventDispatcher(new EventDispatcher()); self::assertInstanceOf(EventDispatcher::class, $configurationEventDispatcher->getEventDispatcher()); } }