@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | #[\PHPUnit\Framework\Attributes\DataProvider('providerTIME')] |
40 | - public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void |
|
40 | + public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void |
|
41 | 41 | { |
42 | 42 | $result = Time::fromHMS($hour, $minute, $second); |
43 | 43 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | class DateDifTest extends TestCase |
18 | 18 | { |
19 | 19 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEDIF')] |
20 | - public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void |
|
20 | + public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void |
|
21 | 21 | { |
22 | 22 | $result = Difference::interval(...$args); |
23 | 23 | self::assertSame($expectedResult, $result); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return is_string($expectedResult) && str_starts_with($expectedResult, 'Y-'); |
43 | 43 | } |
44 | 44 | |
45 | - private function parseTemplatedExpectation(float|int|string $expectedResult): string |
|
45 | + private function parseTemplatedExpectation(float | int | string $expectedResult): string |
|
46 | 46 | { |
47 | 47 | /** @var float */ |
48 | 48 | $x = DateValue::fromString( |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
58 | - public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void |
|
58 | + public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void |
|
59 | 59 | { |
60 | 60 | if ($this->expectationIsTemplate($expectedResult)) { |
61 | 61 | $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
69 | - public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void |
|
69 | + public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void |
|
70 | 70 | { |
71 | 71 | if ($this->expectationIsTemplate($expectedResult)) { |
72 | 72 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } |
83 | 83 | |
84 | 84 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDATEVALUE')] |
85 | - public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void |
|
85 | + public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void |
|
86 | 86 | { |
87 | 87 | if ($this->expectationIsTemplate($expectedResult)) { |
88 | 88 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | #[\PHPUnit\Framework\Attributes\DataProvider('providerBIN2HEX')] |
31 | - public function testDirectCallToBIN2HEX(mixed $expectedResult, bool|float|int|string $value, null|float|int|string $digits = null): void |
|
31 | + public function testDirectCallToBIN2HEX(mixed $expectedResult, bool | float | int | string $value, null | float | int | string $digits = null): void |
|
32 | 32 | { |
33 | 33 | $result = ($digits === null) ? ConvertBinary::toHex($value) : ConvertBinary::toHex($value, $digits); |
34 | 34 | self::assertSame($expectedResult, $result); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | #[\PHPUnit\Framework\Attributes\DataProvider('providerBIN2HEXOds')] |
105 | - public function testBIN2HEXOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
105 | + public function testBIN2HEXOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
106 | 106 | { |
107 | 107 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
108 | 108 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | class GeStepTest extends TestCase |
15 | 15 | { |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerGESTEP')] |
17 | - public function testDirectCallToGESTEP(int|string $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void |
|
17 | + public function testDirectCallToGESTEP(int | string $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void |
|
18 | 18 | { |
19 | 19 | $result = ($arg2 === null) ? Compare::geStep($arg1) : Compare::geStep($arg1, $arg2); |
20 | 20 | self::assertSame($expectedResult, $result); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIMCOT')] |
29 | - public function testDirectCallToIMCOT(float|string $expectedResult, string $arg): void |
|
29 | + public function testDirectCallToIMCOT(float | string $expectedResult, string $arg): void |
|
30 | 30 | { |
31 | 31 | $result = ComplexFunctions::IMCOT($arg); |
32 | 32 | self::assertTrue( |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | class BitOrTest extends TestCase |
15 | 15 | { |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerBITOR')] |
17 | - public function testDirectCallToBITOR(float|int|string $expectedResult, null|bool|int|float|string $arg1, null|bool|int|float|string $arg2): void |
|
17 | + public function testDirectCallToBITOR(float | int | string $expectedResult, null | bool | int | float | string $arg1, null | bool | int | float | string $arg2): void |
|
18 | 18 | { |
19 | 19 | $result = BitWise::BITOR($arg1, $arg2); |
20 | 20 | self::assertSame($expectedResult, $result); |
21 | 21 | } |
22 | 22 | |
23 | 23 | #[\PHPUnit\Framework\Attributes\DataProvider('providerBITOR')] |
24 | - public function testBITORAsFormula(float|int|string $expectedResult, mixed ...$args): void |
|
24 | + public function testBITORAsFormula(float | int | string $expectedResult, mixed ...$args): void |
|
25 | 25 | { |
26 | 26 | $arguments = new FormulaArguments(...$args); |
27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | #[\PHPUnit\Framework\Attributes\DataProvider('providerBITOR')] |
36 | - public function testBITORInWorksheet(float|int|string $expectedResult, mixed ...$args): void |
|
36 | + public function testBITORInWorksheet(float | int | string $expectedResult, mixed ...$args): void |
|
37 | 37 | { |
38 | 38 | $arguments = new FormulaArguments(...$args); |
39 | 39 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIMCSC')] |
29 | - public function testDirectCallToIMCSC(float|string $expectedResult, string $arg): void |
|
29 | + public function testDirectCallToIMCSC(float | string $expectedResult, string $arg): void |
|
30 | 30 | { |
31 | 31 | $result = ComplexFunctions::IMCSC($arg); |
32 | 32 | self::assertTrue( |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | #[\PHPUnit\Framework\Attributes\DataProvider('providerOCT2BIN')] |
31 | - public function testDirectCallToOCT2BIN(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
31 | + public function testDirectCallToOCT2BIN(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
32 | 32 | { |
33 | 33 | $result = ($digits === null) ? ConvertOctal::toBinary($value) : ConvertOctal::toBinary($value, $digits); |
34 | 34 | self::assertSame($expectedResult, $result); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | #[\PHPUnit\Framework\Attributes\DataProvider('providerOCT2BINOds')] |
105 | - public function testOCT2BINOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
105 | + public function testOCT2BINOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
106 | 106 | { |
107 | 107 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
108 | 108 |