From dbf57f22d3f027b96aafed1a337e72a392b68bdb Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Tue, 22 Feb 2022 19:08:02 +0100 Subject: [PATCH] Minor tweaks --- .../Calculation/Functions/Engineering/BesselITest.php | 6 ++++-- .../Calculation/Functions/Engineering/BesselJTest.php | 6 ++++-- .../Calculation/Functions/Engineering/BesselKTest.php | 6 ++++-- .../Calculation/Functions/Engineering/BesselYTest.php | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php index 6e9673a880..3b125790b1 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselITest.php @@ -20,10 +20,12 @@ protected function setUp(): void * @dataProvider providerBESSELI * * @param mixed $expectedResult + * @param mixed $x + * @param mixed $ord */ - public function testBESSELI($expectedResult, ...$args): void + public function testBESSELI($expectedResult, $x, $ord = null): void { - $result = Engineering::BESSELI(...$args); + $result = Engineering::BESSELI($x, $ord); self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php index 16002ae5d0..932855434f 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselJTest.php @@ -20,10 +20,12 @@ protected function setUp(): void * @dataProvider providerBESSEJ * * @param mixed $expectedResult + * @param mixed $x + * @param mixed $ord */ - public function testBESSELJ($expectedResult, ...$args): void + public function testBESSELJ($expectedResult, $x, $ord = null): void { - $result = Engineering::BESSELJ(...$args); + $result = Engineering::BESSELJ($x, $ord); self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php index 11e0885e21..2df392483a 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselKTest.php @@ -20,10 +20,12 @@ protected function setUp(): void * @dataProvider providerBESSELK * * @param mixed $expectedResult + * @param mixed $x + * @param mixed $ord */ - public function testBESSELK($expectedResult, ...$args): void + public function testBESSELK($expectedResult, $x, $ord = null): void { - $result = Engineering::BESSELK(...$args); + $result = Engineering::BESSELK($x, $ord); self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION); } diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php index 47f05e986f..d0e7dee829 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/Engineering/BesselYTest.php @@ -20,10 +20,12 @@ protected function setUp(): void * @dataProvider providerBESSELY * * @param mixed $expectedResult + * @param mixed $x + * @param mixed $ord */ - public function testBESSELY($expectedResult, ...$args): void + public function testBESSELY($expectedResult, $x, $ord = null): void { - $result = Engineering::BESSELY(...$args); + $result = Engineering::BESSELY($x, $ord); self::assertEqualsWithDelta($expectedResult, $result, self::BESSEL_PRECISION); }