From 0bc4abc285ce6416db98b4fb4461e028dac2e7ef Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 10 May 2020 10:49:56 +0200 Subject: [PATCH] fix tests and gamma impl --- Math/Functions/Gamma.php | 2 +- tests/Utils/Converter/CurrencyTest.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Math/Functions/Gamma.php b/Math/Functions/Gamma.php index 46e129b6f..6cfd83cd5 100644 --- a/Math/Functions/Gamma.php +++ b/Math/Functions/Gamma.php @@ -130,7 +130,7 @@ final class Gamma static $approx = [ 76.18009172947146,-86.50532032941677, 24.01409824083091,-1.231739572450155, - 0.1208650973866179e-2,-0.5395239384953e-5 + 0.1208650973866179e-2,-0.5395239384953e-5, ]; $y = $z; diff --git a/tests/Utils/Converter/CurrencyTest.php b/tests/Utils/Converter/CurrencyTest.php index fe7218ea0..81e0bb9a1 100644 --- a/tests/Utils/Converter/CurrencyTest.php +++ b/tests/Utils/Converter/CurrencyTest.php @@ -28,6 +28,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency can be converted from euro to another currency * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testCurrencyFromEur() : void { @@ -38,6 +39,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency can be converted to euro from another currency * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testCurrencyToEur() : void { @@ -48,6 +50,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency can be converted from one currency to another currency * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testCurrency() : void { @@ -59,6 +62,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency conversion from eur to a invalid currency throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testInvalidFromEur() : void { @@ -71,6 +75,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency conversion from a invalid currency to eur throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testInvalidToEur() : void { @@ -83,6 +88,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase * @testdox A currency conversion from a invalid currency to a invalid currency throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Currency * @group framework + * @group maybe */ public function testInvalidConvert() : void {