OpenTelemetry PHP

UtilsTest extends TestCase
in package

Attributes
#[CoversClass]
\OpenTelemetry\Extension\Propagator\CloudTrace\Utils::class

Table of Contents

Methods

for_test_base_convert()  : array<string|int, mixed>
for_test_dec_to_hex()  : array<string|int, mixed>
for_test_hex_to_dec()  : array<string|int, mixed>
for_test_is_big_num()  : array<string|int, mixed>
for_test_left_zero_pad()  : array<string|int, mixed>
test_base_convert()  : void
test_dec_to_hex()  : void
test_hex_to_dec()  : void
test_is_big_num()  : void
test_left_zero_pad()  : void

Methods

for_test_base_convert()

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

for_test_dec_to_hex()

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

for_test_hex_to_dec()

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

for_test_is_big_num()

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

for_test_left_zero_pad()

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

test_base_convert()

public test_base_convert(string $num, int $fromBase, int $toBase, string $equalsTo) : void
Parameters
$num : string
$fromBase : int
$toBase : int
$equalsTo : string
Attributes
#[DataProvider]
'for_test_base_convert'

test_dec_to_hex()

public test_dec_to_hex(string $decNum, string $equalsTo) : void
Parameters
$decNum : string
$equalsTo : string
Attributes
#[DataProvider]
'for_test_dec_to_hex'

test_hex_to_dec()

public test_hex_to_dec(string $hexNum, string $equalsTo) : void
Parameters
$hexNum : string
$equalsTo : string
Attributes
#[DataProvider]
'for_test_hex_to_dec'

test_is_big_num()

public test_is_big_num(mixed $num, bool $equalsTo) : void
Parameters
$num : mixed
$equalsTo : bool
Attributes
#[DataProvider]
'for_test_is_big_num'

test_left_zero_pad()

public test_left_zero_pad(string $pad, int $howMuch, string $equalsTo) : void
Parameters
$pad : string
$howMuch : int
$equalsTo : string
Attributes
#[DataProvider]
'for_test_left_zero_pad'

        
On this page

Search results