diff --git a/Algorithm/Sort/TimSort.php b/Algorithm/Sort/TimSort.php index 2032debb4..82786285c 100644 --- a/Algorithm/Sort/TimSort.php +++ b/Algorithm/Sort/TimSort.php @@ -25,7 +25,7 @@ namespace phpOMS\Algorithm\Sort; final class TimSort implements SortInterface { /** - * Blocks the sorting is devided into + * Blocks the sorting is divided into * * @var int * @since 1.0.0 diff --git a/Business/Finance/Depreciation.php b/Business/Finance/Depreciation.php index 1c2d45e75..c2195ee82 100644 --- a/Business/Finance/Depreciation.php +++ b/Business/Finance/Depreciation.php @@ -124,7 +124,7 @@ final class Depreciation } /** - * Calculate the progressiv factor + * Calculate the progressive factor * * @param float $start Value to depreciate (reduced by residual value if required) * @param float $residual Residual value diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index 539fe552a..b1d3a1532 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -86,7 +86,7 @@ final class Dispatcher implements DispatcherInterface /** * Dispatch string. * - * The disptacher can dispatch static functions. + * The dispatcher can dispatch static functions. * String: `some/namespace/path::myStaticFunction` * * Additionally it's also possible to dispatch functions of modules. diff --git a/Event/EventManager.php b/Event/EventManager.php index b4f24b8be..ac0e5c2f3 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -150,7 +150,7 @@ final class EventManager implements \Countable * @param string $id Sub-requirement for event * @param mixed $data Data to pass to the callback * - * @return bool returns true on sucessfully triggering the event, false if the event couldn't be triggered which also includes sub-requirements missing + * @return bool returns true on successfully triggering the event, false if the event couldn't be triggered which also includes sub-requirements missing * * @since 1.0.0 */ @@ -179,7 +179,7 @@ final class EventManager implements \Countable * @param string $id Sub-requirement for event * @param mixed $data Data to pass to the callback * - * @return bool returns true on sucessfully triggering the event, false if the event couldn't be triggered which also includes sub-requirements missing + * @return bool returns true on successfully triggering the event, false if the event couldn't be triggered which also includes sub-requirements missing * * @since 1.0.0 */ diff --git a/Math/Exception/ZeroDevisionException.php b/Math/Exception/ZeroDivisionException.php similarity index 81% rename from Math/Exception/ZeroDevisionException.php rename to Math/Exception/ZeroDivisionException.php index 986ca75fc..f89a4eb4f 100644 --- a/Math/Exception/ZeroDevisionException.php +++ b/Math/Exception/ZeroDivisionException.php @@ -15,14 +15,14 @@ declare(strict_types=1); namespace phpOMS\Math\Exception; /** - * Zero devision exception. + * Zero division exception. * * @package phpOMS\Math\Exception * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 */ -final class ZeroDevisionException extends \UnexpectedValueException +final class ZeroDivisionException extends \UnexpectedValueException { /** * Constructor. @@ -34,6 +34,6 @@ final class ZeroDevisionException extends \UnexpectedValueException */ public function __construct(int $code = 0, \Exception $previous = null) { - parent::__construct('Devision by zero is not defined.', $code, $previous); + parent::__construct('Division by zero is not defined.', $code, $previous); } } diff --git a/Math/Functions/Fibunacci.php b/Math/Functions/Fibonacci.php similarity index 89% rename from Math/Functions/Fibunacci.php rename to Math/Functions/Fibonacci.php index 01b2f9e14..6453a4be6 100644 --- a/Math/Functions/Fibunacci.php +++ b/Math/Functions/Fibonacci.php @@ -24,7 +24,7 @@ use phpOMS\Math\Number\Numbers; * @link https://orange-management.org * @since 1.0.0 */ -final class Fibunacci +final class Fibonacci { /** * Constructor. @@ -38,7 +38,7 @@ final class Fibunacci } /** - * Is fibunacci number. + * Is Fibonacci number. * * @param int $n Integer * @@ -46,13 +46,13 @@ final class Fibunacci * * @since 1.0.0 */ - public static function isFibunacci(int $n) : bool + public static function isFibonacci(int $n) : bool { return Numbers::isSquare(5 * $n ** 2 + 4) || Numbers::isSquare(5 * $n ** 2 - 4); } /** - * Get n-th fibunacci number. + * Get n-th Fibonacci number. * * @param int $n n-th number * @param int $start Start value @@ -81,7 +81,7 @@ final class Fibunacci } /** - * Calculate n-th fibunacci with binets formula. + * Calculate n-th Fibonacci with binets formula. * * @param int $n n-th number * diff --git a/Math/Statistic/Average.php b/Math/Statistic/Average.php index c23148b12..ca90b61f0 100644 --- a/Math/Statistic/Average.php +++ b/Math/Statistic/Average.php @@ -14,7 +14,7 @@ declare(strict_types=1); namespace phpOMS\Math\Statistic; -use phpOMS\Math\Exception\ZeroDevisionException; +use phpOMS\Math\Exception\ZeroDivisionException; use phpOMS\Math\Matrix\Exception\InvalidDimensionException; /** @@ -167,7 +167,7 @@ final class Average * * @return float * - * @throws ZeroDevisionException This exception is thrown if the values array is empty + * @throws ZeroDivisionException This exception is thrown if the values array is empty * * @since 1.0.0 */ @@ -176,7 +176,7 @@ final class Average $count = \count($values); if ($count === 0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } return \array_sum($values) / $count; @@ -239,7 +239,7 @@ final class Average * * @return float * - * @throws ZeroDevisionException This exception is thrown if the values array is empty + * @throws ZeroDivisionException This exception is thrown if the values array is empty * * @since 1.0.0 */ @@ -248,7 +248,7 @@ final class Average $count = \count($values); if ($count === 0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } return \pow(\array_product($values), 1 / $count); @@ -264,7 +264,7 @@ final class Average * * @return float * - * @throws ZeroDevisionException This exception is thrown if a value in the values array is 0 or if the values array is empty + * @throws ZeroDivisionException This exception is thrown if a value in the values array is 0 or if the values array is empty * * @since 1.0.0 */ @@ -280,12 +280,12 @@ final class Average $sum = 0.0; if ($count === 0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } foreach ($values as $value) { if ($value === 0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } $sum += 1 / $value; diff --git a/Math/Statistic/MeasureOfDispersion.php b/Math/Statistic/MeasureOfDispersion.php index 848a718e7..5fc9af638 100644 --- a/Math/Statistic/MeasureOfDispersion.php +++ b/Math/Statistic/MeasureOfDispersion.php @@ -14,7 +14,7 @@ declare(strict_types=1); namespace phpOMS\Math\Statistic; -use phpOMS\Math\Exception\ZeroDevisionException; +use phpOMS\Math\Exception\ZeroDivisionException; use phpOMS\Math\Matrix\Exception\InvalidDimensionException; /** @@ -68,7 +68,7 @@ final class MeasureOfDispersion * * @return float * - * @throws ZeroDevisionException This exception is thrown if the mean is 0 + * @throws ZeroDivisionException This exception is thrown if the mean is 0 * * @since 1.0.0 */ @@ -77,7 +77,7 @@ final class MeasureOfDispersion $mean = $mean !== null ? $mean : Average::arithmeticMean($values); if ($mean === 0.0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } return self::standardDeviation($values) / $mean; @@ -123,7 +123,7 @@ final class MeasureOfDispersion * * @return float * - * @throws ZeroDevisionException This exception is thrown if the size of the values array is less than 2 + * @throws ZeroDivisionException This exception is thrown if the size of the values array is less than 2 * * @since 1.0.0 */ @@ -132,7 +132,7 @@ final class MeasureOfDispersion $count = \count($values); if ($count < 2) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } return self::empiricalVariance($values, [], $mean) * $count / ($count - 1); @@ -153,7 +153,7 @@ final class MeasureOfDispersion * * @return float * - * @throws ZeroDevisionException This exception is thrown if the values array is empty + * @throws ZeroDivisionException This exception is thrown if the values array is empty * * @since 1.0.0 */ @@ -163,7 +163,7 @@ final class MeasureOfDispersion $hasProbability = !empty($probabilities); if ($count === 0) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } $mean = $hasProbability ? Average::weightedAverage($values, $probabilities) : ($mean !== null ? $mean : Average::arithmeticMean($values)); @@ -190,7 +190,7 @@ final class MeasureOfDispersion * * @return float * - * @throws ZeroDevisionException This exception is thrown if the size of the x array is less than 2 + * @throws ZeroDivisionException This exception is thrown if the size of the x array is less than 2 * @throws InvalidDimensionException This exception is thrown if x and y have different dimensions * * @since 1.0.0 @@ -200,7 +200,7 @@ final class MeasureOfDispersion $count = \count($x); if ($count < 2) { - throw new ZeroDevisionException(); + throw new ZeroDivisionException(); } if ($count !== \count($y)) { diff --git a/Socket/Client/Client.php b/Socket/Client/Client.php index 05a21d97f..0ead12282 100644 --- a/Socket/Client/Client.php +++ b/Socket/Client/Client.php @@ -96,7 +96,7 @@ class Client extends SocketAbstract ++$errorCounter; } - // todo: create reset condition for errorCounter. Probably if a successfull read happened + // todo: create reset condition for errorCounter. Probably if a successful read happened //if (socket_select($read, $write = null, $except = null, 0) < 1) { // error diff --git a/tests/Account/PermissionAbstractTest.php b/tests/Account/PermissionAbstractTest.php index adddf236c..e7feaff8a 100644 --- a/tests/Account/PermissionAbstractTest.php +++ b/tests/Account/PermissionAbstractTest.php @@ -185,7 +185,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid permissions are not validted + * @testdox Invalid permissions are not validated * @covers phpOMS\Account\PermissionAbstract * @group framework */ diff --git a/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php b/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php index 8e6fbb450..fd7c44e08 100644 --- a/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php +++ b/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php @@ -26,7 +26,7 @@ require_once __DIR__ . '/../../Autoloader.php'; class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase { /** - * @testdox A value is matched with the minimum quantity of avialable coins. + * @testdox A value is matched with the minimum quantity of available coins. * @covers phpOMS\Algorithm\CoinMatching\MinimumCoinProblem * @group framework */ diff --git a/tests/Algorithm/PathFinding/GridTest.php b/tests/Algorithm/PathFinding/GridTest.php index d54fe3f72..d3892880e 100644 --- a/tests/Algorithm/PathFinding/GridTest.php +++ b/tests/Algorithm/PathFinding/GridTest.php @@ -102,7 +102,7 @@ class GridTest extends \PHPUnit\Framework\TestCase } /** - * @testdox All hoirzontal neighbors can be found correctly + * @testdox All horizontal neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @group framework */ diff --git a/tests/Algorithm/PathFinding/HeuristicTest.php b/tests/Algorithm/PathFinding/HeuristicTest.php index 262d28d98..5b9abe273 100644 --- a/tests/Algorithm/PathFinding/HeuristicTest.php +++ b/tests/Algorithm/PathFinding/HeuristicTest.php @@ -27,7 +27,7 @@ require_once __DIR__ . '/../../Autoloader.php'; class HeuristicTest extends \PHPUnit\Framework\TestCase { /** - * @testdox The heuristics return the corret metric results + * @testdox The heuristics return the correct metric results * @covers phpOMS\Algorithm\PathFinding\Heuristic * @group framework */ diff --git a/tests/Business/Finance/DepreciationTest.php b/tests/Business/Finance/DepreciationTest.php index 5369b37b6..ffa314725 100644 --- a/tests/Business/Finance/DepreciationTest.php +++ b/tests/Business/Finance/DepreciationTest.php @@ -24,7 +24,7 @@ use phpOMS\Business\Finance\Depreciation; class DepreciationTest extends \PHPUnit\Framework\TestCase { /** - * @testdox The straight line deprecition and reverse value calculations are correct + * @testdox The straight line depreciation and reverse value calculations are correct * @group framework */ public function testStraightLine() : void @@ -38,7 +38,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The arithmetic degressiv deprecition and reverse value calculations are correct + * @testdox The arithmetic degressive depreciation and reverse value calculations are correct * @group framework */ public function testArithmeticDegressivDepreciation() : void @@ -54,7 +54,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The arithmetic progressiv deprecition and reverse value calculations are correct + * @testdox The arithmetic progressive depreciation and reverse value calculations are correct * @group framework */ public function testArithmeticProgressivDepreciation() : void @@ -70,7 +70,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The geometric progressiv deprecition and reverse value calculations are correct + * @testdox The geometric progressive depreciation and reverse value calculations are correct * @group framework */ public function testGeometricProgressivDepreciation() : void @@ -86,7 +86,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The geometric degressiv deprecition and reverse value calculations are correct + * @testdox The geometric degressive depreciation and reverse value calculations are correct * @group framework */ public function testGeometricDegressivDepreciation() : void diff --git a/tests/Business/Finance/FinanceFormulasTest.php b/tests/Business/Finance/FinanceFormulasTest.php index 36451f20b..b6fe9af74 100644 --- a/tests/Business/Finance/FinanceFormulasTest.php +++ b/tests/Business/Finance/FinanceFormulasTest.php @@ -335,7 +335,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The descounted payback period is correct + * @testdox The discounted payback period is correct * @group framework */ public function testDiscountedPaybackPeriod() : void @@ -548,7 +548,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase } /** - * @testdox No cash flows in the net prsent value calculation result in 0 + * @testdox No cash flows in the net present value calculation result in 0 * @group framework */ public function testEmptyNetPresentValue() : void diff --git a/tests/Business/Marketing/MetricsTest.php b/tests/Business/Marketing/MetricsTest.php index aa8877b7d..52ba9567b 100644 --- a/tests/Business/Marketing/MetricsTest.php +++ b/tests/Business/Marketing/MetricsTest.php @@ -24,7 +24,7 @@ use phpOMS\Business\Marketing\Metrics; class MetricsTest extends \PHPUnit\Framework\TestCase { /** - * @testdox Test the correctnes of the customer retention calculation + * @testdox Test the correctness of the customer retention calculation * @group framework */ public function testCustomerRetention() : void diff --git a/tests/Business/Marketing/NetPromoterScoreTest.php b/tests/Business/Marketing/NetPromoterScoreTest.php index 717ecf6d0..b9731696d 100644 --- a/tests/Business/Marketing/NetPromoterScoreTest.php +++ b/tests/Business/Marketing/NetPromoterScoreTest.php @@ -35,7 +35,7 @@ class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The net promotor score, detractors, passives and promotors are correct + * @testdox The net promoter score, detractors, passives and promoters are correct * @group framework */ public function testScoreDetractorPassivePromotor() : void diff --git a/tests/Config/OptionsTraitTest.php b/tests/Config/OptionsTraitTest.php index 88cbed069..b6a9816e6 100644 --- a/tests/Config/OptionsTraitTest.php +++ b/tests/Config/OptionsTraitTest.php @@ -19,7 +19,7 @@ use phpOMS\Config\OptionsTrait; require_once __DIR__ . '/../Autoloader.php'; /** - * @testdox phpOMS\tests\Config\OptionsTrait: Helper for managing otpions + * @testdox phpOMS\tests\Config\OptionsTrait: Helper for managing options * * @internal */ diff --git a/tests/DataStorage/Cache/Connection/FileCacheTest.php b/tests/DataStorage/Cache/Connection/FileCacheTest.php index 097cce834..5fef6a227 100644 --- a/tests/DataStorage/Cache/Connection/FileCacheTest.php +++ b/tests/DataStorage/Cache/Connection/FileCacheTest.php @@ -70,7 +70,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The connection to a dedicated cache directory can be established (none-exising directories get created) + * @testdox The connection to a dedicated cache directory can be established (none-existing directories get created) * @covers phpOMS\DataStorage\Cache\Connection\FileCache * @group framework */ @@ -259,7 +259,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Unexpired cache data connot be delete if lower expiration is defined + * @testdox Unexpired cache data cannot be delete if lower expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\FileCache * @group framework */ @@ -295,7 +295,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Cach data can be flushed by expiration date + * @testdox Cache data can be flushed by expiration date * @covers phpOMS\DataStorage\Cache\Connection\FileCache * @group framework */ diff --git a/tests/DataStorage/Cache/Connection/MemCachedTest.php b/tests/DataStorage/Cache/Connection/MemCachedTest.php index 7905e3ee9..f06fe02e2 100644 --- a/tests/DataStorage/Cache/Connection/MemCachedTest.php +++ b/tests/DataStorage/Cache/Connection/MemCachedTest.php @@ -67,7 +67,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The connection to a cache can be established (none-exising directories get created) + * @testdox The connection to a cache can be established (none-existing directories get created) * @covers phpOMS\DataStorage\Cache\Connection\MemCached * @group framework */ diff --git a/tests/DataStorage/Cache/Connection/RedisCacheTest.php b/tests/DataStorage/Cache/Connection/RedisCacheTest.php index 494f3f525..42fcc5e75 100644 --- a/tests/DataStorage/Cache/Connection/RedisCacheTest.php +++ b/tests/DataStorage/Cache/Connection/RedisCacheTest.php @@ -62,7 +62,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The connection to a cache can be established (none-exising directories get created) + * @testdox The connection to a cache can be established (none-existing directories get created) * @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @group framework */ diff --git a/tests/DataStorage/Cookie/CookieJarTest.php b/tests/DataStorage/Cookie/CookieJarTest.php index fa0df4f68..280277796 100644 --- a/tests/DataStorage/Cookie/CookieJarTest.php +++ b/tests/DataStorage/Cookie/CookieJarTest.php @@ -110,7 +110,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A locked coockie cannot be saved and throws a LockException + * @testdox A locked cookie cannot be saved and throws a LockException * @group framework */ public function testSaveLocked() : void diff --git a/tests/DataStorage/Database/DataMapperAbstractTest.php b/tests/DataStorage/Database/DataMapperAbstractTest.php index 5d7ca9ec7..088890102 100644 --- a/tests/DataStorage/Database/DataMapperAbstractTest.php +++ b/tests/DataStorage/Database/DataMapperAbstractTest.php @@ -162,7 +162,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully creates a database entry of a model + * @testdox The datamapper successfully creates a database entry of a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -173,7 +173,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully creates a database entry of array data + * @testdox The datamapper successfully creates a database entry of array data * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -184,7 +184,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully returns a database entry as model + * @testdox The datamapper successfully returns a database entry as model * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -221,7 +221,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully returns a database entry as array + * @testdox The datamapper successfully returns a database entry as array * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -253,7 +253,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully updates a database entry from a model + * @testdox The datamapper successfully updates a database entry from a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -285,7 +285,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully updates a database entry from an array + * @testdox The datamapper successfully updates a database entry from an array * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ @@ -317,7 +317,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The datamapper sucessfully deletes a database entry from a model + * @testdox The datamapper successfully deletes a database entry from a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract * @group framework */ diff --git a/tests/Dispatcher/DispatcherTest.php b/tests/Dispatcher/DispatcherTest.php index 9c0a5e4dc..69a633729 100644 --- a/tests/Dispatcher/DispatcherTest.php +++ b/tests/Dispatcher/DispatcherTest.php @@ -51,7 +51,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The disptacher can dispatch a function/closure + * @testdox The dispatcher can dispatch a function/closure * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -79,7 +79,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The disptacher can dispatch a method as string representation of a controller + * @testdox The dispatcher can dispatch a method as string representation of a controller * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -99,7 +99,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The disptacher can dispatch a method as array representation of a controller + * @testdox The dispatcher can dispatch a method as array representation of a controller * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -127,7 +127,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The disptacher can dispatch a static method as string representation + * @testdox The dispatcher can dispatch a static method as string representation * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -147,7 +147,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The disptacher can dispatch multiple destinations after another + * @testdox The dispatcher can dispatch multiple destinations after another * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -183,7 +183,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A invalid controller path thorws a PathException + * @testdox A invalid controller path throws a PathException * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -195,7 +195,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A invalid function path thorws a Exception + * @testdox A invalid function path throws a Exception * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ @@ -207,7 +207,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A malformed dispatch path thorws UnexpectedValueException + * @testdox A malformed dispatch path throws UnexpectedValueException * @covers phpOMS\Dispatcher\Dispatcher * @group framework */ diff --git a/tests/Event/EventManagerTest.php b/tests/Event/EventManagerTest.php index 005762d59..7da1a302c 100644 --- a/tests/Event/EventManagerTest.php +++ b/tests/Event/EventManagerTest.php @@ -148,7 +148,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase } /** - * @testdox An event can be manually removed/detatched + * @testdox An event can be manually removed/detached * @covers phpOMS\Event\EventManager * @group framework */ @@ -165,7 +165,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase } /** - * @testdox None-existing events cannot be manually removed/detatched + * @testdox None-existing events cannot be manually removed/detached * @covers phpOMS\Event\EventManager * @group framework */ diff --git a/tests/Math/Exception/ZeroDevisionExceptionTest.php b/tests/Math/Exception/ZeroDevisionExceptionTest.php index c8b931211..0084a9390 100644 --- a/tests/Math/Exception/ZeroDevisionExceptionTest.php +++ b/tests/Math/Exception/ZeroDevisionExceptionTest.php @@ -14,15 +14,15 @@ declare(strict_types=1); namespace phpOMS\tests\Math\Exception; -use phpOMS\Math\Exception\ZeroDevisionException; +use phpOMS\Math\Exception\ZeroDivisionException; /** * @internal */ -class ZeroDevisionExceptionTest extends \PHPUnit\Framework\TestCase +class ZeroDivisionExceptionTest extends \PHPUnit\Framework\TestCase { public function testException() : void { - self::assertInstanceOf(\UnexpectedValueException::class, new ZeroDevisionException()); + self::assertInstanceOf(\UnexpectedValueException::class, new ZeroDivisionException()); } } diff --git a/tests/Math/Functions/FibonacciTest.php b/tests/Math/Functions/FibonacciTest.php new file mode 100644 index 000000000..58031abba --- /dev/null +++ b/tests/Math/Functions/FibonacciTest.php @@ -0,0 +1,71 @@ + * @group framework */ @@ -124,7 +124,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The request is correctly constracted + * @testdox The request is correctly constructed * @covers phpOMS\Message\Http\Request * @group framework */ diff --git a/tests/Message/Http/ResponseTest.php b/tests/Message/Http/ResponseTest.php index f96d891e7..b42147ca6 100644 --- a/tests/Message/Http/ResponseTest.php +++ b/tests/Message/Http/ResponseTest.php @@ -46,7 +46,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Response data can be set and retruned + * @testdox Response data can be set and returned * @covers phpOMS\Message\Http\Response * @group framework */ diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index bb917992d..4ff5a1114 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -81,7 +81,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Unknown modules cannot get activested, deactivated + * @testdox Unknown modules cannot get activated, deactivated * @covers phpOMS\Module\ModuleManager * @group framework */ diff --git a/tests/Security/PhpCodeTest.php b/tests/Security/PhpCodeTest.php index 8e6c37111..a4dd06827 100644 --- a/tests/Security/PhpCodeTest.php +++ b/tests/Security/PhpCodeTest.php @@ -101,7 +101,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A file hash comparison is successfull if the file generates the same hash + * @testdox A file hash comparison is successful if the file generates the same hash * @covers phpOMS\Security\PhpCode * @group framework */ @@ -111,7 +111,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A file hash comparison is unsuccessfull if the file generates a different hash + * @testdox A file hash comparison is unsuccessful if the file generates a different hash * @covers phpOMS\Security\PhpCode * @group framework */ diff --git a/tests/Stdlib/Base/AddressTest.php b/tests/Stdlib/Base/AddressTest.php index c4206848d..6dbb42dd0 100644 --- a/tests/Stdlib/Base/AddressTest.php +++ b/tests/Stdlib/Base/AddressTest.php @@ -85,7 +85,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The recepient can be set and returned + * @testdox The recipient can be set and returned * @covers phpOMS\Stdlib\Base\Address * @group framework */ diff --git a/tests/Stdlib/Base/EnumArrayTest.php b/tests/Stdlib/Base/EnumArrayTest.php index 101627913..ac68ada86 100644 --- a/tests/Stdlib/Base/EnumArrayTest.php +++ b/tests/Stdlib/Base/EnumArrayTest.php @@ -63,7 +63,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A valid enum value can be checked for existance + * @testdox A valid enum value can be checked for existence * @covers phpOMS\Stdlib\Base\EnumArray * @group framework */ diff --git a/tests/Stdlib/Base/EnumTest.php b/tests/Stdlib/Base/EnumTest.php index 2854be264..8cc1a88d1 100644 --- a/tests/Stdlib/Base/EnumTest.php +++ b/tests/Stdlib/Base/EnumTest.php @@ -52,7 +52,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A valid enum value can be checked for existance + * @testdox A valid enum value can be checked for existence * @covers phpOMS\Stdlib\Base\Enum * @group framework */ diff --git a/tests/Stdlib/Base/SmartDateTimeTest.php b/tests/Stdlib/Base/SmartDateTimeTest.php index f3c2be60d..3052f6ff8 100644 --- a/tests/Stdlib/Base/SmartDateTimeTest.php +++ b/tests/Stdlib/Base/SmartDateTimeTest.php @@ -196,7 +196,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The day of the week index can be retruned from a date + * @testdox The day of the week index can be returned from a date * @covers phpOMS\Stdlib\Base\SmartDateTime * @group framework */ @@ -220,7 +220,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A calendar sheet is retunred containing all days of the month and some days of the previous and next month + * @testdox A calendar sheet is returned containing all days of the month and some days of the previous and next month * @covers phpOMS\Stdlib\Base\SmartDateTime * @group framework */ diff --git a/tests/System/File/FileUtilsTest.php b/tests/System/File/FileUtilsTest.php index 8cdb1baab..f0b2db0c9 100644 --- a/tests/System/File/FileUtilsTest.php +++ b/tests/System/File/FileUtilsTest.php @@ -58,7 +58,7 @@ class FileUtilsTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Permissions can be turned into ocal values + * @testdox Permissions can be turned into octal values * @covers phpOMS\System\File\FileUtils * @group framework */ diff --git a/tests/Uri/UriFactoryTest.php b/tests/Uri/UriFactoryTest.php index fbc4b6b61..be02c327b 100644 --- a/tests/Uri/UriFactoryTest.php +++ b/tests/Uri/UriFactoryTest.php @@ -142,7 +142,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Data whitch doesn't match the regular expression is not removed + * @testdox Data which doesn't match the regular expression is not removed * @covers phpOMS\Uri\UriFactory * @group framework */ diff --git a/tests/Utils/ArrayUtilsTest.php b/tests/Utils/ArrayUtilsTest.php index 93781dd1c..c220ef728 100644 --- a/tests/Utils/ArrayUtilsTest.php +++ b/tests/Utils/ArrayUtilsTest.php @@ -213,7 +213,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase } /** - * @testdox All array values in an array can be exponentiated by an integer + * @testdox All array values in an array can be potentiated by an integer * @covers phpOMS\Utils\ArrayUtils * @group framework */ @@ -224,7 +224,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase } /** - * @testdox All array values in an array can be exponentiated by a float + * @testdox All array values in an array can be potentiated by a float * @covers phpOMS\Utils\ArrayUtils * * @todo combine with int as soon as union types exist diff --git a/tests/Utils/Converter/MeasurementTest.php b/tests/Utils/Converter/MeasurementTest.php index 4ffa46f39..cffb76dab 100644 --- a/tests/Utils/Converter/MeasurementTest.php +++ b/tests/Utils/Converter/MeasurementTest.php @@ -266,7 +266,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown temperature throws a InvalidArgumentException + * @testdox Invalid conversion from unknown temperature throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -278,7 +278,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown temperature throws a InvalidArgumentException + * @testdox Invalid conversion to unknown temperature throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -290,7 +290,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown weight throws a InvalidArgumentException + * @testdox Invalid conversion from unknown weight throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -302,7 +302,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown weight throws a InvalidArgumentException + * @testdox Invalid conversion to unknown weight throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -314,7 +314,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown length throws a InvalidArgumentException + * @testdox Invalid conversion from unknown length throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -326,7 +326,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown length throws a InvalidArgumentException + * @testdox Invalid conversion to unknown length throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -338,7 +338,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown area throws a InvalidArgumentException + * @testdox Invalid conversion from unknown area throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -350,7 +350,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown area throws a InvalidArgumentException + * @testdox Invalid conversion to unknown area throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -362,7 +362,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown volume throws a InvalidArgumentException + * @testdox Invalid conversion from unknown volume throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -374,7 +374,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown volume throws a InvalidArgumentException + * @testdox Invalid conversion to unknown volume throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -386,7 +386,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown speed throws a InvalidArgumentException + * @testdox Invalid conversion from unknown speed throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -398,7 +398,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown speed throws a InvalidArgumentException + * @testdox Invalid conversion to unknown speed throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -410,7 +410,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown time throws a InvalidArgumentException + * @testdox Invalid conversion from unknown time throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -422,7 +422,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown time throws a InvalidArgumentException + * @testdox Invalid conversion to unknown time throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -434,7 +434,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown angle throws a InvalidArgumentException + * @testdox Invalid conversion from unknown angle throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -446,7 +446,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown angle throws a InvalidArgumentException + * @testdox Invalid conversion to unknown angle throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -458,7 +458,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown pressure throws a InvalidArgumentException + * @testdox Invalid conversion from unknown pressure throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -470,7 +470,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown pressure throws a InvalidArgumentException + * @testdox Invalid conversion to unknown pressure throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -482,7 +482,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown energy throws a InvalidArgumentException + * @testdox Invalid conversion from unknown energy throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -494,7 +494,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown energy throws a InvalidArgumentException + * @testdox Invalid conversion to unknown energy throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -506,7 +506,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion from unknown filesize throws a InvalidArgumentException + * @testdox Invalid conversion from unknown filesize throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ @@ -518,7 +518,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Invalid convertion to unknown filesize throws a InvalidArgumentException + * @testdox Invalid conversion to unknown filesize throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement * @group framework */ diff --git a/tests/Utils/Encoding/Huffman/DictionaryTest.php b/tests/Utils/Encoding/Huffman/DictionaryTest.php index 0d02433ed..866e9d611 100644 --- a/tests/Utils/Encoding/Huffman/DictionaryTest.php +++ b/tests/Utils/Encoding/Huffman/DictionaryTest.php @@ -50,7 +50,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase } /** - * @testdox Only single chracters can be set in the dictionary. Multiple characters throw a InvalidArgumentException + * @testdox Only single characters can be set in the dictionary. Multiple characters throw a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary * @group framework */ diff --git a/tests/Utils/Encoding/Huffman/HuffmanTest.php b/tests/Utils/Encoding/Huffman/HuffmanTest.php index 8dbf39d8a..37714ff5d 100644 --- a/tests/Utils/Encoding/Huffman/HuffmanTest.php +++ b/tests/Utils/Encoding/Huffman/HuffmanTest.php @@ -17,7 +17,7 @@ namespace phpOMS\tests\Utils\Encoding\Huffman; use phpOMS\Utils\Encoding\Huffman\Huffman; /** - * @testdox phpOMS\tests\Utils\Encoding\Huffman\HuffmanTest: Data can be ecoded with huffman + * @testdox phpOMS\tests\Utils\Encoding\Huffman\HuffmanTest: Data can be encoded with huffman * * @internal */ diff --git a/tests/Utils/IO/Csv/CsvSettingsTest.php b/tests/Utils/IO/Csv/CsvSettingsTest.php index b51df54c7..ad877b330 100644 --- a/tests/Utils/IO/Csv/CsvSettingsTest.php +++ b/tests/Utils/IO/Csv/CsvSettingsTest.php @@ -24,7 +24,7 @@ use phpOMS\Utils\IO\Csv\CsvSettings; class CsvSettingsTest extends \PHPUnit\Framework\TestCase { /** - * @testdox The delimitar in a csv file can be guessed + * @testdox The delimiter in a csv file can be guessed * @covers phpOMS\Utils\IO\Csv\CsvSettings * @group framework */ diff --git a/tests/Utils/PermutationTest.php b/tests/Utils/PermutationTest.php index 25cc16962..d222797a3 100644 --- a/tests/Utils/PermutationTest.php +++ b/tests/Utils/PermutationTest.php @@ -64,7 +64,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox An array can be permutated with a permutation key + * @testdox An array can be permuted with a permutation key * @covers phpOMS\Utils\Permutation * @group framework */ @@ -86,7 +86,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase } /** - * @testdox A none-existing permutation keye throws a OutOfBoundsException + * @testdox A none-existing permutation key throws a OutOfBoundsException * @covers phpOMS\Utils\Permutation * @group framework */ diff --git a/tests/Utils/TaskSchedule/CronTest.php b/tests/Utils/TaskSchedule/CronTest.php index d6674cf86..f04f2f970 100644 --- a/tests/Utils/TaskSchedule/CronTest.php +++ b/tests/Utils/TaskSchedule/CronTest.php @@ -45,7 +45,7 @@ class CronTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The cron brinary location path can be guessed + * @testdox The cron binary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\Cron * @group framework */ diff --git a/tests/Utils/TaskSchedule/SchedulerAbstractTest.php b/tests/Utils/TaskSchedule/SchedulerAbstractTest.php index 764f13110..ea084c5dd 100644 --- a/tests/Utils/TaskSchedule/SchedulerAbstractTest.php +++ b/tests/Utils/TaskSchedule/SchedulerAbstractTest.php @@ -34,7 +34,7 @@ class SchedulerAbstractTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The scheduler brinary location path can be guessed + * @testdox The scheduler binary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract * @group framework */ diff --git a/tests/Utils/TaskSchedule/SchedulerFactoryTest.php b/tests/Utils/TaskSchedule/SchedulerFactoryTest.php index 82fbfb206..17d9a261f 100644 --- a/tests/Utils/TaskSchedule/SchedulerFactoryTest.php +++ b/tests/Utils/TaskSchedule/SchedulerFactoryTest.php @@ -26,7 +26,7 @@ use phpOMS\Utils\TaskSchedule\TaskScheduler; class SchedulerFactoryTest extends \PHPUnit\Framework\TestCase { /** - * @testdox The correct schudeler is crated depending on the operating system + * @testdox The correct scheduler is crated depending on the operating system * @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract * @group framework */ diff --git a/tests/Utils/TaskSchedule/TaskSchedulerTest.php b/tests/Utils/TaskSchedule/TaskSchedulerTest.php index 30d9fad90..d2bd14fa1 100644 --- a/tests/Utils/TaskSchedule/TaskSchedulerTest.php +++ b/tests/Utils/TaskSchedule/TaskSchedulerTest.php @@ -44,7 +44,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase } /** - * @testdox The task brinary location path can be guessed + * @testdox The task binary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\TaskScheduler * @group framework */