@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param mixed[][] $criteria |
16 | 16 | */ |
17 | 17 | #[DataProvider('providerDMax')] |
18 | - public function testDirectCallToDMax(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void |
|
18 | + public function testDirectCallToDMax(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void |
|
19 | 19 | { |
20 | 20 | $result = DMax::evaluate($database, $field, $criteria); |
21 | 21 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param mixed[][] $criteria |
27 | 27 | */ |
28 | 28 | #[DataProvider('providerDMax')] |
29 | - public function testDMaxAsWorksheetFormula(int|string $expectedResult, array $database, string|null|int $field, array $criteria): void |
|
29 | + public function testDMaxAsWorksheetFormula(int | string $expectedResult, array $database, string | null | int $field, array $criteria): void |
|
30 | 30 | { |
31 | 31 | $this->prepareWorksheetWithFormula('DMAX', $database, $field, $criteria); |
32 | 32 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param mixed[][] $criteria |
16 | 16 | */ |
17 | 17 | #[DataProvider('providerDVarP')] |
18 | - public function testDirectCallToDVarP(float|string $expectedResult, array $database, ?string $field, array $criteria): void |
|
18 | + public function testDirectCallToDVarP(float | string $expectedResult, array $database, ?string $field, array $criteria): void |
|
19 | 19 | { |
20 | 20 | $result = DVarP::evaluate($database, $field, $criteria); |
21 | 21 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param mixed[][] $criteria |
27 | 27 | */ |
28 | 28 | #[DataProvider('providerDVarP')] |
29 | - public function testDVarPAsWorksheetFormula(float|string $expectedResult, array $database, ?string $field, array $criteria): void |
|
29 | + public function testDVarPAsWorksheetFormula(float | string $expectedResult, array $database, ?string $field, array $criteria): void |
|
30 | 30 | { |
31 | 31 | $this->prepareWorksheetWithFormula('DVARP', $database, $field, $criteria); |
32 | 32 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param mixed[][] $criteria |
16 | 16 | */ |
17 | 17 | #[DataProvider('providerDCountA')] |
18 | - public function testDirectCallToDCountA(int|string $expectedResult, array $database, string $field, array $criteria): void |
|
18 | + public function testDirectCallToDCountA(int | string $expectedResult, array $database, string $field, array $criteria): void |
|
19 | 19 | { |
20 | 20 | $result = DCountA::evaluate($database, $field, $criteria); |
21 | 21 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param mixed[][] $criteria |
27 | 27 | */ |
28 | 28 | #[DataProvider('providerDCountA')] |
29 | - public function testDCountAAsWorksheetFormula(int|string $expectedResult, array $database, string $field, array $criteria): void |
|
29 | + public function testDCountAAsWorksheetFormula(int | string $expectedResult, array $database, string $field, array $criteria): void |
|
30 | 30 | { |
31 | 31 | $this->prepareWorksheetWithFormula('DCOUNTA', $database, $field, $criteria); |
32 | 32 |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | return is_string($expectedResult) && str_starts_with($expectedResult, 'Y-'); |
44 | 44 | } |
45 | 45 | |
46 | - private function parseTemplatedExpectation(float|int|string $expectedResult): string |
|
46 | + private function parseTemplatedExpectation(float | int | string $expectedResult): string |
|
47 | 47 | { |
48 | 48 | /** @var float */ |
49 | 49 | $x = DateValue::fromString( |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | #[DataProvider('providerDATEVALUE')] |
59 | - public function testDirectCallToDATEVALUE(int|string $expectedResult, bool|int|string $value): void |
|
59 | + public function testDirectCallToDATEVALUE(int | string $expectedResult, bool | int | string $value): void |
|
60 | 60 | { |
61 | 61 | if ($this->expectationIsTemplate($expectedResult)) { |
62 | 62 | $expectedResult = $this->parseTemplatedExpectation((string) $expectedResult); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | #[DataProvider('providerDATEVALUE')] |
70 | - public function testDATEVALUEAsFormula(float|int|string $expectedResult, mixed ...$args): void |
|
70 | + public function testDATEVALUEAsFormula(float | int | string $expectedResult, mixed ...$args): void |
|
71 | 71 | { |
72 | 72 | if ($this->expectationIsTemplate($expectedResult)) { |
73 | 73 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | #[DataProvider('providerDATEVALUE')] |
86 | - public function testDATEVALUEInWorksheet(float|int|string $expectedResult, mixed ...$args): void |
|
86 | + public function testDATEVALUEInWorksheet(float | int | string $expectedResult, mixed ...$args): void |
|
87 | 87 | { |
88 | 88 | if ($this->expectationIsTemplate($expectedResult)) { |
89 | 89 | $expectedResult = $this->parseTemplatedExpectation($expectedResult); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | #[DataProvider('providerTIME')] |
41 | - public function testDirectCallToTIME(float|string $expectedResult, int|string $hour, bool|int $minute, int $second): void |
|
41 | + public function testDirectCallToTIME(float | string $expectedResult, int | string $hour, bool | int $minute, int $second): void |
|
42 | 42 | { |
43 | 43 | $result = Time::fromHMS($hour, $minute, $second); |
44 | 44 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-12); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | #[DataProvider('providerTIMEVALUE')] |
35 | - public function testDirectCallToTIMEVALUE(int|float|string $expectedResult, bool|int|string $value): void |
|
35 | + public function testDirectCallToTIMEVALUE(int | float | string $expectedResult, bool | int | string $value): void |
|
36 | 36 | { |
37 | 37 | $result = TimeValue::fromString($value); |
38 | 38 | self::assertEqualsWithDelta($expectedResult, $result, 1.0e-8); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | #[DataProvider('providerWEEKDAY')] |
34 | - public function testDirectCallToWEEKDAY(int|string $expectedResult, bool|int|string $dateValue, null|int|string $style = null): void |
|
34 | + public function testDirectCallToWEEKDAY(int | string $expectedResult, bool | int | string $dateValue, null | int | string $style = null): void |
|
35 | 35 | { |
36 | 36 | $result = ($style === null) ? Week::day($dateValue) : Week::day($dateValue, $style); |
37 | 37 | self::assertSame($expectedResult, $result); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | class DaysTest extends TestCase |
18 | 18 | { |
19 | 19 | #[DataProvider('providerDAYS')] |
20 | - public function testDirectCallToDAYS(int|string $expectedResult, int|string $date1, int|string $date2): void |
|
20 | + public function testDirectCallToDAYS(int | string $expectedResult, int | string $date1, int | string $date2): void |
|
21 | 21 | { |
22 | 22 | $result = Days::between($date1, $date2); |
23 | 23 | self::assertSame($expectedResult, $result); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | /** @param array<mixed>|int|string $expectedResult */ |
21 | 21 | #[DataProvider('providerDATEDIF')] |
22 | - public function testDirectCallToDATEDIF(array|int|string $expectedResult, string ...$args): void |
|
22 | + public function testDirectCallToDATEDIF(array | int | string $expectedResult, string ...$args): void |
|
23 | 23 | { |
24 | 24 | $result = Difference::interval(...$args); |
25 | 25 | self::assertSame($expectedResult, $result); |