opentelemetry-php/tests/Integration/Config/ConfigurationTest.php

29 lines
814 B
PHP

<?php
declare(strict_types=1);
namespace OpenTelemetry\Tests\Integration\Config;
use OpenTelemetry\Config\SDK\Configuration;
use PHPUnit\Framework\Attributes\CoversNothing;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
#[CoversNothing]
final class ConfigurationTest extends TestCase
{
#[DataProvider('openTelemetryConfigurationDataProvider')]
public function test_open_telemetry_configuration(string $file): void
{
$this->expectNotToPerformAssertions();
Configuration::parseFile($file)->create();
}
public static function openTelemetryConfigurationDataProvider(): iterable
{
yield 'kitchen-sink' => [__DIR__ . '/configurations/kitchen-sink.yaml'];
yield 'anchors' => [__DIR__ . '/configurations/anchors.yaml'];
}
}