OpenTelemetry PHP

HostTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Resource\Detectors\Host::class

Table of Contents

Methods

hostIdData()  : array<string|int, mixed>
nonReadableFileProvider()  : array<string|int, mixed>
setUp()  : void
test_file_not_readable()  : void
test_host_get_resource()  : void
test_host_id_filesystem()  : void

Methods

hostIdData()

public static hostIdData() : array<string|int, mixed>
Return values
array<string|int, mixed>

nonReadableFileProvider()

public static nonReadableFileProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

test_file_not_readable()

public test_file_not_readable(string $os, vfsStreamDirectory $root) : void
Parameters
$os : string
$root : vfsStreamDirectory
Attributes
#[DataProvider]
'nonReadableFileProvider'

test_host_get_resource()

public test_host_get_resource() : void

test_host_id_filesystem()

public test_host_id_filesystem(string $os, array<string|int, mixed> $files, string|null $expectedId) : void
Parameters
$os : string
$files : array<string|int, mixed>
$expectedId : string|null
Attributes
#[DataProvider]
'hostIdData'

        
On this page

Search results