@@ -10,7 +10,7 @@ |
||
10 | 10 | class HelpersTest extends TestCase |
11 | 11 | { |
12 | 12 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDaysPerYear')] |
13 | - public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void |
|
13 | + public function testDaysPerYear(mixed $expectedResult, int $year, int | string $basis): void |
|
14 | 14 | { |
15 | 15 | $result = Helpers::daysPerYear($year, $basis); |
16 | 16 | self::assertSame($expectedResult, $result); |
@@ -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( |
@@ -16,7 +16,7 @@ |
||
16 | 16 | const COMPLEX_PRECISION = 1E-12; |
17 | 17 | |
18 | 18 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIMABS')] |
19 | - public function testDirectCallToIMABS(float|int|string $expectedResult, string $arg): void |
|
19 | + public function testDirectCallToIMABS(float | int | string $expectedResult, string $arg): void |
|
20 | 20 | { |
21 | 21 | $result = ComplexFunctions::IMABS($arg); |
22 | 22 | self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | #[\PHPUnit\Framework\Attributes\DataProvider('providerHEX2OCT')] |
31 | - public function testDirectCallToHEX2OCT(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
31 | + public function testDirectCallToHEX2OCT(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
32 | 32 | { |
33 | 33 | $result = ($digits === null) ? ConvertHex::toOctal($value) : ConvertHex::toOctal($value, $digits); |
34 | 34 | self::assertSame($expectedResult, $result); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | #[\PHPUnit\Framework\Attributes\DataProvider('providerHEX2OCTOds')] |
105 | - public function testHEX2OCTOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
105 | + public function testHEX2OCTOds(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
106 | 106 | { |
107 | 107 | Functions::setCompatibilityMode(Functions::COMPATIBILITY_OPENOFFICE); |
108 | 108 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIMCSCH')] |
29 | - public function testDirectCallToIMCSCH(float|string $expectedResult, string $arg): void |
|
29 | + public function testDirectCallToIMCSCH(float | string $expectedResult, string $arg): void |
|
30 | 30 | { |
31 | 31 | $result = ComplexFunctions::IMCSCH($arg); |
32 | 32 | self::assertTrue( |
@@ -22,7 +22,7 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | #[\PHPUnit\Framework\Attributes\DataProvider('providerIMARGUMENT')] |
25 | - public function testDirectCallToIMARGUMENT(float|int|string $expectedResult, string $arg): void |
|
25 | + public function testDirectCallToIMARGUMENT(float | int | string $expectedResult, string $arg): void |
|
26 | 26 | { |
27 | 27 | $result = ComplexFunctions::IMARGUMENT($arg); |
28 | 28 | self::assertEqualsWithDelta($expectedResult, $result, self::COMPLEX_PRECISION); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | #[\PHPUnit\Framework\Attributes\DataProvider('providerHEX2BIN')] |
31 | - public function testDirectCallToHEX2BIN(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
31 | + public function testDirectCallToHEX2BIN(mixed $expectedResult, bool | float | int | string $value, ?int $digits = null): void |
|
32 | 32 | { |
33 | 33 | $result = ($digits === null) ? ConvertHex::toBinary($value) : ConvertHex::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('providerHEX2BINOds')] |
105 | - public function testHEX2BINOds(mixed $expectedResult, bool|float|int|string $value, ?int $digits = null): void |
|
105 | + public function testHEX2BINOds(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 DeltaTest extends TestCase |
15 | 15 | { |
16 | 16 | #[\PHPUnit\Framework\Attributes\DataProvider('providerDELTA')] |
17 | - public function testDirectCallToDELTA(mixed $expectedResult, bool|float|int|string $arg1, null|bool|float|int|string $arg2 = null): void |
|
17 | + public function testDirectCallToDELTA(mixed $expectedResult, bool | float | int | string $arg1, null | bool | float | int | string $arg2 = null): void |
|
18 | 18 | { |
19 | 19 | $result = ($arg2 === null) ? Compare::delta($arg1) : Compare::delta($arg1, $arg2); |
20 | 20 | self::assertSame($expectedResult, $result); |