OpenTelemetry PHP

DependencyResolverTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Common\Adapter\HttpDiscovery\DependencyResolver::class

Table of Contents

Constants

DEPENDENCIES  = [\OpenTelemetry\SDK\Common\Http\Psr\Message\FactoryResolverInterface::class => [\Psr\Http\Message\RequestFactoryInterface::class, \Psr\Http\Message\ResponseFactoryInterface::class, \Psr\Http\Message\ServerRequestFactoryInterface::class, \Psr\Http\Message\StreamFactoryInterface::class, \Psr\Http\Message\UploadedFileFactoryInterface::class, \Psr\Http\Message\UriFactoryInterface::class], \OpenTelemetry\SDK\Common\Http\Psr\Client\ResolverInterface::class => [\Psr\Http\Client\ClientInterface::class], \OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface::class => [\Http\Client\HttpAsyncClient::class]]
METHOD_NAME_REPLACEMENTS  = [\OpenTelemetry\SDK\Common\Http\Psr\Message\FactoryResolverInterface::class => [], \OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface::class => ['Http', 'HttpPlug'], \OpenTelemetry\SDK\Common\Http\Psr\Client\ResolverInterface::class => ['Client', 'PsrClient']]

Methods

provideDependencies()  : Generator
test_resolve()  : void
resolveMethodName()  : string

Constants

DEPENDENCIES

private mixed DEPENDENCIES = [\OpenTelemetry\SDK\Common\Http\Psr\Message\FactoryResolverInterface::class => [\Psr\Http\Message\RequestFactoryInterface::class, \Psr\Http\Message\ResponseFactoryInterface::class, \Psr\Http\Message\ServerRequestFactoryInterface::class, \Psr\Http\Message\StreamFactoryInterface::class, \Psr\Http\Message\UploadedFileFactoryInterface::class, \Psr\Http\Message\UriFactoryInterface::class], \OpenTelemetry\SDK\Common\Http\Psr\Client\ResolverInterface::class => [\Psr\Http\Client\ClientInterface::class], \OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface::class => [\Http\Client\HttpAsyncClient::class]]

METHOD_NAME_REPLACEMENTS

private mixed METHOD_NAME_REPLACEMENTS = [\OpenTelemetry\SDK\Common\Http\Psr\Message\FactoryResolverInterface::class => [], \OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface::class => ['Http', 'HttpPlug'], \OpenTelemetry\SDK\Common\Http\Psr\Client\ResolverInterface::class => ['Client', 'PsrClient']]

Methods

test_resolve()

public test_resolve(string $method, object $dependency, array<string|int, mixed> $arguments) : void
Parameters
$method : string
$dependency : object
$arguments : array<string|int, mixed>
Attributes
#[DataProvider]
'provideDependencies'

resolveMethodName()

private static resolveMethodName(string $interface[, array<string|int, mixed> $replacements = [] ]) : string
Parameters
$interface : string
$replacements : array<string|int, mixed> = []
Tags
psalm-param

class-string $interface

Return values
string

        
On this page

Search results