From 5f632dfca0b3043d651a111999dde74669e13fd8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 3 Dec 2019 22:27:47 +0100 Subject: [PATCH] fix @covers and comments --- tests/ApplicationAbstractTest.php | 4 ++-- .../Cache/Connection/NullCacheTest.php | 2 +- tests/Math/Functions/FibunacciTest.php | 10 +++++----- tests/Math/Functions/FunctionsTest.php | 16 ++++++++-------- tests/Math/Functions/GammaTest.php | 10 +++++----- tests/Utils/IO/Zip/GzTest.php | 2 +- tests/Utils/IO/Zip/TarGzTest.php | 2 +- tests/Utils/IO/Zip/TarTest.php | 2 +- tests/Utils/TaskSchedule/TaskSchedulerTest.php | 2 +- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/ApplicationAbstractTest.php b/tests/ApplicationAbstractTest.php index c25415ea4..c8785fb48 100644 --- a/tests/ApplicationAbstractTest.php +++ b/tests/ApplicationAbstractTest.php @@ -25,7 +25,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase { /** * @testdox Application values can be set and returned - * @covers phpOMS\ApplicationAbstract + * @covers phpOMS\ApplicationAbstract * @group framework */ public function testInputOutput() : void @@ -38,7 +38,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Application values cannot be overwritten - * @covers phpOMS\ApplicationAbstract + * @covers phpOMS\ApplicationAbstract * @group framework */ public function testInvalidInputOutput() : void diff --git a/tests/DataStorage/Cache/Connection/NullCacheTest.php b/tests/DataStorage/Cache/Connection/NullCacheTest.php index 2e2b4cfae..037c032aa 100644 --- a/tests/DataStorage/Cache/Connection/NullCacheTest.php +++ b/tests/DataStorage/Cache/Connection/NullCacheTest.php @@ -26,7 +26,7 @@ class NullCacheTest extends \PHPUnit\Framework\TestCase { /** * @testdox The default cache has the expected default values after initialization - * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @covers phpOMS\DataStorage\Cache\Connection\NullCache * @group framework */ public function testCache() : void diff --git a/tests/Math/Functions/FibunacciTest.php b/tests/Math/Functions/FibunacciTest.php index c4dca188b..39a1c5b31 100644 --- a/tests/Math/Functions/FibunacciTest.php +++ b/tests/Math/Functions/FibunacciTest.php @@ -17,7 +17,7 @@ namespace phpOMS\tests\Math\Functions; use phpOMS\Math\Functions\Fibunacci; /** - * @testdox phpOMS\tests\Math\Function\FibunacciTest: Fibunacci functions + * @testdox phpOMS\tests\Math\Functions\FibunacciTest: Fibunacci functions * * @internal */ @@ -25,7 +25,7 @@ class FibunacciTest extends \PHPUnit\Framework\TestCase { /** * @testdox A number can be checked if it is a fibunacci number - * @covers phpOMS\Math\Function\Fibunacci + * @covers phpOMS\Math\Functions\Fibunacci * @group framework */ public function testFibunacci() : void @@ -39,7 +39,7 @@ class FibunacciTest extends \PHPUnit\Framework\TestCase /** * @testdox A fibunacci number can be returned by index - * @covers phpOMS\Math\Function\Fibunacci + * @covers phpOMS\Math\Functions\Fibunacci * @group framework */ public function testFibunacciByKey() : void @@ -49,7 +49,7 @@ class FibunacciTest extends \PHPUnit\Framework\TestCase /** * @testdox The binet formula returns fibunacci numbers - * @covers phpOMS\Math\Function\Fibunacci + * @covers phpOMS\Math\Functions\Fibunacci * @group framework */ public function testBinet() : void @@ -60,7 +60,7 @@ class FibunacciTest extends \PHPUnit\Framework\TestCase /** * @testdox The binet formula and the fibunacci formula return the same results - * @covers phpOMS\Math\Function\Fibunacci + * @covers phpOMS\Math\Functions\Fibunacci * @group framework */ public function testBinetFib() : void diff --git a/tests/Math/Functions/FunctionsTest.php b/tests/Math/Functions/FunctionsTest.php index 43d6eb220..cd89f8eb6 100644 --- a/tests/Math/Functions/FunctionsTest.php +++ b/tests/Math/Functions/FunctionsTest.php @@ -17,7 +17,7 @@ namespace phpOMS\tests\Math\Functions; use phpOMS\Math\Functions\Functions; /** - * @testdox phpOMS\tests\Math\Function\FunctionsTest: Various math functions + * @testdox phpOMS\tests\Math\Functions\FunctionsTest: Various math functions * * @internal */ @@ -25,7 +25,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase { /** * @testdox The factorial of a number can be calculated - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testFactorial() : void @@ -36,7 +36,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox The binomial coefficient can be calculated - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testBinomialCoefficient() : void @@ -48,7 +48,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox The ackerman function can be calculated - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testAckermann() : void @@ -61,7 +61,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox The multiplicative inverse module can be calculated - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testMultiplicativeInverseModulo() : void @@ -73,7 +73,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox A number can be checked if it is odd - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testOdd() : void @@ -86,7 +86,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox A number can be checked if it is even - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testEven() : void @@ -99,7 +99,7 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase /** * @testdox The relative number can be calculated on a circular number system (e.g. month in a diverging business year) - * @covers phpOMS\Math\Function\Functions + * @covers phpOMS\Math\Functions\Functions * @group framework */ public function testCircularPosition() : void diff --git a/tests/Math/Functions/GammaTest.php b/tests/Math/Functions/GammaTest.php index 0345ce97b..dcf52a57f 100644 --- a/tests/Math/Functions/GammaTest.php +++ b/tests/Math/Functions/GammaTest.php @@ -18,7 +18,7 @@ use phpOMS\Math\Functions\Functions; use phpOMS\Math\Functions\Gamma; /** - * @testdox phpOMS\tests\Math\Function\GammaTest: Gamma function + * @testdox phpOMS\tests\Math\Functions\GammaTest: Gamma function * * @internal */ @@ -26,7 +26,7 @@ class GammaTest extends \PHPUnit\Framework\TestCase { /** * @testdox The gamma function can be calculated for integers - * @covers phpOMS\Math\Function\Gamma + * @covers phpOMS\Math\Functions\Gamma * @group framework */ public function testFactorial() : void @@ -36,7 +36,7 @@ class GammaTest extends \PHPUnit\Framework\TestCase /** * @testdox The gamma function can be approximated with the spouge formula - * @covers phpOMS\Math\Function\Gamma + * @covers phpOMS\Math\Functions\Gamma * @group framework */ public function testApproximationSpouge() : void @@ -56,7 +56,7 @@ class GammaTest extends \PHPUnit\Framework\TestCase /** * @testdox The gamma function can be approximated with the stirling formula - * @covers phpOMS\Math\Function\Gamma + * @covers phpOMS\Math\Functions\Gamma * @group framework */ public function testApproximationStirling() : void @@ -76,7 +76,7 @@ class GammaTest extends \PHPUnit\Framework\TestCase /** * @testdox The gamma function can be approximated with the lanzos formula - * @covers phpOMS\Math\Function\Gamma + * @covers phpOMS\Math\Functions\Gamma * @group framework */ public function testApproximationLanzos() : void diff --git a/tests/Utils/IO/Zip/GzTest.php b/tests/Utils/IO/Zip/GzTest.php index 124d74f07..3379d3ae9 100644 --- a/tests/Utils/IO/Zip/GzTest.php +++ b/tests/Utils/IO/Zip/GzTest.php @@ -12,7 +12,7 @@ */ declare(strict_types=1); -namespace phpOMS\tests\Utils\IO\Gz; +namespace phpOMS\tests\Utils\IO\Zip; use phpOMS\Utils\IO\Zip\Gz; diff --git a/tests/Utils/IO/Zip/TarGzTest.php b/tests/Utils/IO/Zip/TarGzTest.php index 85329d474..0e77b800f 100644 --- a/tests/Utils/IO/Zip/TarGzTest.php +++ b/tests/Utils/IO/Zip/TarGzTest.php @@ -12,7 +12,7 @@ */ declare(strict_types=1); -namespace phpOMS\tests\Utils\IO\TarGz; +namespace phpOMS\tests\Utils\IO\Zip; use phpOMS\Utils\IO\Zip\TarGz; diff --git a/tests/Utils/IO/Zip/TarTest.php b/tests/Utils/IO/Zip/TarTest.php index 8e1f1d03a..6de74af9a 100644 --- a/tests/Utils/IO/Zip/TarTest.php +++ b/tests/Utils/IO/Zip/TarTest.php @@ -12,7 +12,7 @@ */ declare(strict_types=1); -namespace phpOMS\tests\Utils\IO\Tar; +namespace phpOMS\tests\Utils\IO\Zip; use phpOMS\Utils\IO\Zip\Tar; diff --git a/tests/Utils/TaskSchedule/TaskSchedulerTest.php b/tests/Utils/TaskSchedule/TaskSchedulerTest.php index b56030d17..30d9fad90 100644 --- a/tests/Utils/TaskSchedule/TaskSchedulerTest.php +++ b/tests/Utils/TaskSchedule/TaskSchedulerTest.php @@ -77,7 +77,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase * @covers phpOMS\Utils\TaskSchedule\TaskScheduler * @group framework */ - public function testInvalidCronJobName() : void + public function testInvalidTaskScheduleName() : void { $task = new TaskScheduler(); self::assertEquals([], $task->getAllByName('testTaskSchedule', false));