HostTest
extends TestCase
-
#[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
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>
setUp()
public
setUp() : void
test_file_not_readable()
public
test_file_not_readable(string $os, vfsStreamDirectory $root) : void
Parameters
-
$os
: string
-
-
$root
: vfsStreamDirectory
-
-
#[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
-
-
#[DataProvider]
-
'hostIdData'