From 48f21805cbff12d009058eb69f50dcd47ceed92b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 3 Dec 2019 19:27:46 +0100 Subject: [PATCH] add test descriptions --- Message/ResponseAbstract.php | 2 +- tests/Account/AccountManagerTest.php | 7 ++ tests/Account/AccountStatusTest.php | 3 + tests/Account/AccountTest.php | 13 ++++ tests/Account/AccountTypeTest.php | 3 + tests/Account/GroupStatusTest.php | 3 + tests/Account/GroupTest.php | 6 ++ tests/Account/PermissionAbstractTest.php | 13 ++++ tests/Account/PermissionTypeTest.php | 3 + tests/Algorithm/Clustering/KmeansTest.php | 1 + tests/Algorithm/Clustering/PointTest.php | 4 + .../CoinMatching/MinimumCoinProblemTest.php | 1 + tests/Algorithm/JobScheduling/JobTest.php | 1 + .../Algorithm/JobScheduling/WeightedTest.php | 2 + tests/Algorithm/Knapsack/BackpackTest.php | 2 + tests/Algorithm/Knapsack/BoundedTest.php | 1 + tests/Algorithm/Knapsack/ContinuousTest.php | 2 + tests/Algorithm/Knapsack/ItemTest.php | 1 + tests/Algorithm/PathFinding/AStarNodeTest.php | 6 ++ tests/Algorithm/PathFinding/AStarTest.php | 4 + tests/Algorithm/PathFinding/GridTest.php | 18 +++++ .../PathFinding/JumpPointNodeTest.php | 7 ++ .../PathFinding/JumpPointSearchTest.php | 4 + tests/Algorithm/PathFinding/NodeTest.php | 4 + tests/Algorithm/PathFinding/PathTest.php | 4 + tests/Algorithm/Sort/BitonicSortTest.php | 3 + tests/Algorithm/Sort/BubbleSortTest.php | 3 + tests/Algorithm/Sort/BucketSortTest.php | 4 + .../Algorithm/Sort/CocktailShakerSortTest.php | 3 + tests/Algorithm/Sort/CombSortTest.php | 3 + tests/Algorithm/Sort/CycleSortTest.php | 3 + tests/Algorithm/Sort/GnomeSortTest.php | 3 + tests/Algorithm/Sort/HeapSortTest.php | 3 + tests/Algorithm/Sort/InsertionSortTest.php | 3 + tests/Algorithm/Sort/IntroSortTest.php | 3 + tests/Algorithm/Sort/MergeSortTest.php | 3 + tests/Algorithm/Sort/OddEvenSortTest.php | 3 + tests/Algorithm/Sort/PancakeSortTest.php | 3 + tests/Algorithm/Sort/QuickSortTest.php | 3 + tests/Algorithm/Sort/SelectionSortTest.php | 3 + tests/Algorithm/Sort/ShellSortTest.php | 3 + tests/Algorithm/Sort/StoogeSortTest.php | 3 + tests/Algorithm/Sort/TimSortTest.php | 3 + tests/ApplicationAbstractTest.php | 2 + tests/Asset/AssetManagerTest.php | 7 ++ tests/Asset/AssetTypeTest.php | 3 + tests/Auth/AuthTest.php | 1 + tests/Auth/LoginReturnTypeTest.php | 3 + tests/AutoloaderTest.php | 1 + tests/Business/Finance/DepreciationTest.php | 5 ++ .../Business/Finance/FinanceFormulasTest.php | 41 ++++++++++ tests/Business/Finance/LoanTest.php | 6 ++ tests/Business/Finance/LorenzkurveTest.php | 1 + tests/Business/Finance/StockBondsTest.php | 13 ++++ tests/Business/Marketing/MetricsTest.php | 1 + .../Marketing/NetPromoterScoreTest.php | 2 + tests/Business/Programming/MetricsTest.php | 2 + .../Sales/MarketShareEstimationTest.php | 2 + tests/Config/OptionsTraitTest.php | 6 ++ tests/DataStorage/Cache/CachePoolTest.php | 8 ++ tests/DataStorage/Cache/CacheStatusTest.php | 3 + tests/DataStorage/Cache/CacheTypeTest.php | 3 + .../Cache/Connection/CacheValueTypeTest.php | 3 + .../Connection/ConnectionFactoryTest.php | 4 + .../Cache/Connection/FileCacheTest.php | 20 +++++ .../Cache/Connection/MemCachedTest.php | 21 +++++ .../Cache/Connection/NullCacheTest.php | 1 + .../Cache/Connection/RedisCacheTest.php | 21 +++++ tests/DataStorage/Cookie/CookieJarTest.php | 8 ++ .../Connection/ConnectionFactoryTest.php | 5 ++ .../Connection/MysqlConnectionTest.php | 9 +++ .../Connection/PostgresConnectionTest.php | 9 +++ .../Connection/SQLiteConnectionTest.php | 3 + .../Connection/SqlServerConnectionTest.php | 9 +++ .../Database/DataMapperAbstractTest.php | 8 ++ .../DataStorage/Database/DatabasePoolTest.php | 7 ++ .../Database/DatabaseStatusTest.php | 3 + .../DataStorage/Database/DatabaseTypeTest.php | 3 + .../Database/Query/BuilderTest.php | 22 ++++++ .../Database/Query/Grammar/GrammarTest.php | 2 + .../Query/Grammar/MysqlGrammarTest.php | 1 + .../Query/Grammar/SQLiteGrammarTest.php | 1 + .../Database/Query/JoinTypeTest.php | 3 + .../Database/Query/QueryTypeTest.php | 3 + .../DataStorage/Database/RelationTypeTest.php | 3 + .../Database/Schema/BuilderTest.php | 4 + .../Database/Schema/Grammar/GrammarTest.php | 2 + .../Schema/Grammar/MysqlGrammarTest.php | 3 + .../Schema/Grammar/SQLiteGrammarTest.php | 1 + .../Database/Schema/QueryTypeTest.php | 3 + tests/DataStorage/Session/HttpSessionTest.php | 10 +++ tests/Dispatcher/DispatcherTest.php | 10 +++ tests/Event/EventManagerTest.php | 14 ++++ .../Localization/Defaults/CityMapperTest.php | 1 + tests/Localization/Defaults/CityTest.php | 1 + .../Defaults/CountryMapperTest.php | 1 + tests/Localization/Defaults/CountryTest.php | 1 + .../Defaults/CurrencyMapperTest.php | 1 + tests/Localization/Defaults/CurrencyTest.php | 1 + .../Localization/Defaults/IbanMapperTest.php | 1 + tests/Localization/Defaults/IbanTest.php | 1 + .../Defaults/LanguageMapperTest.php | 1 + tests/Localization/Defaults/LanguageTest.php | 1 + tests/Localization/ISO3166CharEnumTest.php | 1 + tests/Localization/ISO3166NameEnumTest.php | 1 + tests/Localization/ISO3166NumEnumTest.php | 1 + tests/Localization/ISO3166TwoEnumTest.php | 1 + tests/Localization/ISO4217CharEnumTest.php | 1 + tests/Localization/ISO4217DecimalEnumTest.php | 1 + tests/Localization/ISO4217EnumTest.php | 1 + tests/Localization/ISO4217NumEnumTest.php | 1 + tests/Localization/ISO4217SubUnitEnumTest.php | 1 + tests/Localization/ISO4217SymbolEnumTest.php | 1 + tests/Localization/ISO639EnumTest.php | 1 + tests/Localization/ISO639x1EnumTest.php | 1 + tests/Localization/ISO639x2EnumTest.php | 1 + tests/Localization/ISO8601EnumArrayTest.php | 1 + tests/Localization/L11nManagerTest.php | 5 ++ tests/Localization/LocalizationTest.php | 26 +++++++ tests/Localization/MoneyTest.php | 12 +++ tests/Localization/PhoneEnumTest.php | 1 + tests/Localization/TimeZoneEnumArrayTest.php | 1 + tests/Log/FileLoggerTest.php | 15 ++++ tests/Log/LogLevelTest.php | 3 + tests/Math/Functions/FibunacciTest.php | 26 ++++++- tests/Math/Functions/FunctionsTest.php | 37 +++++++++ tests/Math/Functions/GammaTest.php | 22 ++++++ .../Geometry/ConvexHull/MonotoneChainTest.php | 7 ++ tests/Math/Geometry/Shape/D2/CircleTest.php | 22 ++++++ tests/Math/Geometry/Shape/D2/EllipseTest.php | 12 +++ tests/Math/Geometry/Shape/D2/PolygonTest.php | 42 ++++++++++ .../Geometry/Shape/D2/QuadrilateralTest.php | 7 ++ .../Math/Geometry/Shape/D2/RectangleTest.php | 17 ++++ .../Math/Geometry/Shape/D2/TrapezoidTest.php | 22 ++++++ tests/Math/Geometry/Shape/D2/TriangleTest.php | 22 ++++++ tests/Math/Geometry/Shape/D3/ConeTest.php | 22 ++++++ tests/Math/Matrix/MatrixTest.php | 24 ++++++ tests/Math/Matrix/VectorTest.php | 3 + tests/Math/Number/NumberTypeTest.php | 3 + tests/Math/Numerics/IntegrationTest.php | 5 ++ .../CubicSplineInterpolationTest.php | 2 + .../LagrangeInterpolationTest.php | 1 + .../Interpolation/LinearInterpolationTest.php | 1 + tests/Math/Parser/EvaluatorTest.php | 2 + tests/Math/Statistic/AverageTest.php | 15 ++++ tests/Math/Statistic/CorrelationTest.php | 4 + .../Regression/LevelLevelRegressionTest.php | 7 ++ .../Regression/LevelLogRegressionTest.php | 4 + .../Regression/LogLevelRegressionTest.php | 4 + .../Regression/LogLogRegressionTest.php | 4 + .../Regression/PolynomialRegressionTest.php | 2 + .../Statistic/MeasureOfDispersionTest.php | 14 ++++ .../Stochastic/NaiveBayesClassifierTest.php | 2 + tests/Message/HeaderAbstractTest.php | 1 + tests/Message/Http/BrowserTypeTest.php | 3 + tests/Message/Http/HeaderTest.php | 14 ++++ tests/Message/Http/OSTypeTest.php | 2 + tests/Message/Http/RequestMethodTest.php | 3 + tests/Message/Http/RequestStatusCodeTest.php | 3 + tests/Message/Http/RequestStatusTest.php | 3 + tests/Message/Http/RequestTest.php | 24 ++++++ tests/Message/Http/ResponseTest.php | 9 +++ tests/Message/Http/RestTest.php | 5 ++ tests/Message/ResponseAbstractTest.php | 3 + tests/Message/Socket/PacketTypeTest.php | 3 + tests/Model/Html/HeadTest.php | 9 +++ tests/Model/Html/MetaTest.php | 9 +++ tests/Model/Message/DomActionTest.php | 3 + tests/Model/Message/NotifyTypeTest.php | 3 + tests/Module/InfoManagerTest.php | 5 ++ tests/Module/ModuleAbstractTest.php | 5 ++ tests/Module/ModuleManagerTest.php | 8 ++ tests/Module/PackageManagerTest.php | 6 ++ tests/Router/RouteVerbTest.php | 2 + tests/Router/SocketRouterTest.php | 7 ++ tests/Router/WebRouterTest.php | 10 +++ tests/Security/PhpCodeTest.php | 9 +++ tests/Stdlib/Base/AddressTest.php | 7 ++ tests/Stdlib/Base/AddressTypeTest.php | 3 + tests/Stdlib/Base/EnumArrayTest.php | 9 +++ tests/Stdlib/Base/EnumTest.php | 12 +++ tests/Stdlib/Base/HeapTest.php | 12 +++ tests/Stdlib/Base/IbanTest.php | 5 ++ tests/Stdlib/Base/LocationTest.php | 11 +++ tests/Stdlib/Base/PhoneTypeTest.php | 3 + tests/Stdlib/Base/SmartDateTimeTest.php | 11 +++ tests/Stdlib/Map/KeyTypeTest.php | 3 + tests/Stdlib/Map/MultiMapTest.php | 43 ++++++++++ tests/Stdlib/Map/OrderTypeTest.php | 3 + tests/Stdlib/Queue/PriorityModeTest.php | 3 + tests/Stdlib/Queue/PriorityQueueTest.php | 16 ++++ tests/System/File/ContentPutModeTest.php | 3 + tests/System/File/ExtensionTypeTest.php | 3 + tests/System/File/FileUtilsTest.php | 3 + tests/System/File/Ftp/DirectoryTest.php | 31 ++++++++ tests/System/File/Ftp/FileTest.php | 41 ++++++++++ tests/System/File/Local/DirectoryTest.php | 33 ++++++++ tests/System/File/Local/FileTest.php | 41 ++++++++++ tests/System/File/Local/LocalStorageTest.php | 78 +++++++++++++++++++ tests/System/File/StorageTest.php | 5 ++ tests/System/MimeTypeTest.php | 1 + tests/System/SystemTypeTest.php | 3 + tests/System/SystemUtilsTest.php | 2 + tests/Uri/ArgumentTest.php | 8 ++ tests/Uri/HttpTest.php | 17 ++++ tests/Uri/UriFactoryTest.php | 12 +++ tests/Uri/UriSchemeTest.php | 2 + tests/Utils/ArrayUtilsTest.php | 16 ++++ tests/Utils/Barcode/OrientationTypeTest.php | 3 + tests/Utils/ColorUtilsTest.php | 2 + tests/Utils/Compression/LZWTest.php | 1 + tests/Utils/Converter/AngleTypeTest.php | 3 + tests/Utils/Converter/AreaTypeTest.php | 3 + tests/Utils/Converter/CurrencyTest.php | 6 ++ tests/Utils/Converter/EnergyPowerTypeTest.php | 3 + tests/Utils/Converter/FileSizeTypeTest.php | 3 + tests/Utils/Converter/FileTest.php | 2 + tests/Utils/Converter/IpTest.php | 1 + tests/Utils/Converter/LengthTypeTest.php | 3 + tests/Utils/Converter/MeasurementTest.php | 33 ++++++++ tests/Utils/Converter/NumericTest.php | 5 ++ tests/Utils/Converter/PressureTypeTest.php | 3 + tests/Utils/Converter/SpeedTypeTest.php | 3 + tests/Utils/Converter/TemperatureTypeTest.php | 3 + tests/Utils/Converter/TimeTypeTest.php | 3 + tests/Utils/Converter/VolumeTypeTest.php | 3 + tests/Utils/Converter/WeightTypeTest.php | 3 + tests/Utils/Encoding/CaesarTest.php | 1 + tests/Utils/Encoding/GrayTest.php | 1 + .../Utils/Encoding/Huffman/DictionaryTest.php | 5 ++ tests/Utils/Encoding/Huffman/HuffmanTest.php | 2 + tests/Utils/Encoding/XorEncodingTest.php | 1 + tests/Utils/Git/AuthorTest.php | 5 ++ tests/Utils/Git/BranchTest.php | 2 + tests/Utils/Git/CommitTest.php | 13 ++++ tests/Utils/Git/GitTest.php | 1 + tests/Utils/Git/RepositoryTest.php | 1 + tests/Utils/Git/TagTest.php | 3 + tests/Utils/IO/Csv/CsvSettingsTest.php | 1 + .../Spreadsheet/ExcelDatabaseMapperTest.php | 9 +++ tests/Utils/IO/Zip/GzTest.php | 4 + tests/Utils/IO/Zip/TarGzTest.php | 4 + tests/Utils/IO/Zip/TarTest.php | 4 + tests/Utils/IO/Zip/ZipTest.php | 4 + tests/Utils/ImageUtilsTest.php | 1 + tests/Utils/NumericUtilsTest.php | 1 + tests/Utils/Parser/Php/ArrayParserTest.php | 2 + tests/Utils/PermutationTest.php | 6 ++ tests/Utils/RnG/ArrayRandomizeTest.php | 2 + tests/Utils/RnG/DateTimeTest.php | 1 + tests/Utils/RnG/DistributionTypeTest.php | 3 + tests/Utils/RnG/FileTest.php | 1 + .../RnG/LinearCongruentialGeneratorTest.php | 6 ++ tests/Utils/RnG/NameTest.php | 1 + tests/Utils/RnG/PhoneTest.php | 1 + tests/Utils/RnG/StringUtilsTest.php | 1 + tests/Utils/RnG/TextTest.php | 1 + tests/Utils/StringCompareTest.php | 3 + tests/Utils/StringUtilsTest.php | 16 ++++ tests/Utils/TaskSchedule/CronJobTest.php | 2 + tests/Utils/TaskSchedule/CronTest.php | 6 ++ tests/Utils/TaskSchedule/IntervalTest.php | 17 ++++ tests/Utils/TaskSchedule/ScheduleTest.php | 2 + .../TaskSchedule/SchedulerAbstractTest.php | 2 + .../TaskSchedule/SchedulerFactoryTest.php | 1 + tests/Utils/TaskSchedule/TaskAbstractTest.php | 6 ++ tests/Utils/TaskSchedule/TaskFactoryTest.php | 1 + .../Utils/TaskSchedule/TaskSchedulerTest.php | 6 ++ tests/Utils/TestUtilsTest.php | 4 + tests/Validation/Base/DateTimeTest.php | 1 + tests/Validation/Base/JsonTest.php | 6 ++ tests/Validation/Finance/BICTest.php | 1 + tests/Validation/Finance/CreditCardTest.php | 2 + tests/Validation/Finance/IbanEnumTest.php | 1 + .../Validation/Finance/IbanErrorTypeTest.php | 3 + tests/Validation/Finance/IbanTest.php | 1 + tests/Validation/Network/EmailTest.php | 1 + tests/Validation/Network/HostnameTest.php | 1 + tests/Validation/Network/IpTest.php | 3 + tests/Validation/ValidatorTest.php | 7 ++ tests/Version/VersionTest.php | 1 + tests/Views/PaginationViewTest.php | 5 ++ tests/Views/ViewTest.php | 22 ++++++ tests/phpunit_no_coverage.xml | 4 - 284 files changed, 1819 insertions(+), 7 deletions(-) diff --git a/Message/ResponseAbstract.php b/Message/ResponseAbstract.php index 359c05954..24c9b3d37 100644 --- a/Message/ResponseAbstract.php +++ b/Message/ResponseAbstract.php @@ -65,7 +65,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable * * @since 1.0.0 */ - public function set($key, $response, bool $overwrite = true) : void + public function set($key, $response, bool $overwrite = false) : void { // This is not working since the key contains :: from http:// //$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite); diff --git a/tests/Account/AccountManagerTest.php b/tests/Account/AccountManagerTest.php index 3ce78955b..9245ee21e 100644 --- a/tests/Account/AccountManagerTest.php +++ b/tests/Account/AccountManagerTest.php @@ -40,6 +40,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The manager has the expected member variables * @covers phpOMS\Account\AccountManager + * @group framework */ public function testAttributes() : void { @@ -52,6 +53,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The manager has the expected default values after initialization * @covers phpOMS\Account\AccountManager + * @group framework */ public function testDefault() : void { @@ -63,6 +65,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can be added to the manager * @covers phpOMS\Account\AccountManager + * @group framework */ public function testAddAccount() : void { @@ -74,6 +77,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can be retrieved from the manager * @covers phpOMS\Account\AccountManager + * @group framework */ public function testRetrieveAccount() : void { @@ -84,6 +88,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can only be added once to the account manager (no duplication) * @covers phpOMS\Account\AccountManager + * @group framework */ public function testNoAccountDuplication() : void { @@ -99,6 +104,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can be removed from the account manager * @covers phpOMS\Account\AccountManager + * @group framework */ public function testRemoveAccount() : void { @@ -111,6 +117,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Only a valid account can be removed from the manager * @covers phpOMS\Account\AccountManager + * @group framework */ public function testRemoveOnlyValidAccount() : void { diff --git a/tests/Account/AccountStatusTest.php b/tests/Account/AccountStatusTest.php index dc124d4e8..43aeebf3c 100644 --- a/tests/Account/AccountStatusTest.php +++ b/tests/Account/AccountStatusTest.php @@ -24,6 +24,7 @@ use phpOMS\Account\AccountStatus; class AccountStatusTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class AccountStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class AccountStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Account/AccountTest.php b/tests/Account/AccountTest.php index 4338bea46..3ddb4d64b 100644 --- a/tests/Account/AccountTest.php +++ b/tests/Account/AccountTest.php @@ -42,6 +42,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox The account has the expected member variables * @covers phpOMS\Account\Account + * @group framework */ public function testAttributes() : void { @@ -68,6 +69,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox The account has the expected default values after initialization * @covers phpOMS\Account\Account + * @group framework */ public function testDefault() : void { @@ -116,6 +118,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox The account names can be set and retrieved correctly * @covers phpOMS\Account\Account + * @group framework */ public function testSetAndGetAccountNames() : void { @@ -141,6 +144,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox Groups can be added to an account * @covers phpOMS\Account\Account + * @group framework */ public function testAddAndGetGroup() : void { @@ -154,6 +158,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can have a valid email address * @covers phpOMS\Account\Account + * @group framework */ public function testSetAndGetAccountEmail() : void { @@ -167,6 +172,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox The default status of the account can be changed to a different valid status * @covers phpOMS\Account\Account + * @group framework */ public function testChangeStatus() : void { @@ -180,6 +186,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox The default type of the account can be changed to a different valid type * @covers phpOMS\Account\Account + * @group framework */ public function testChangeType() : void { @@ -193,6 +200,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox Account permissions can be added and checked for existence * @covers phpOMS\Account\Account + * @group framework */ public function testPermissionHandling() : void { @@ -227,6 +235,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can have it's own localization * @covers phpOMS\Account\Account + * @group framework */ public function testLocalization() : void { @@ -239,6 +248,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account 'last activity' timestamp can be updated and retrieved + * @group framework */ public function testLastChange() : void { @@ -252,6 +262,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can only have a valid email + * @group framework */ public function testEmailException() : void { @@ -263,6 +274,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can only have valid account status + * @group framework */ public function testStatusException() : void { @@ -280,6 +292,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase /** * @testdox An account can only have valid account types + * @group framework */ public function testTypeException() : void { diff --git a/tests/Account/AccountTypeTest.php b/tests/Account/AccountTypeTest.php index abcd89e07..6a58ddfa2 100644 --- a/tests/Account/AccountTypeTest.php +++ b/tests/Account/AccountTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\Account\AccountType; class AccountTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class AccountTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class AccountTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Account/GroupStatusTest.php b/tests/Account/GroupStatusTest.php index 48b63f2d9..5ab7e3fc6 100644 --- a/tests/Account/GroupStatusTest.php +++ b/tests/Account/GroupStatusTest.php @@ -24,6 +24,7 @@ use phpOMS\Account\GroupStatus; class GroupStatusTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class GroupStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class GroupStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Account/GroupTest.php b/tests/Account/GroupTest.php index 023c02893..ea99b7433 100644 --- a/tests/Account/GroupTest.php +++ b/tests/Account/GroupTest.php @@ -31,6 +31,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox The group has the expected member variables * @covers phpOMS\Account\Group + * @group framework */ public function testAttributes() : void { @@ -50,6 +51,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox The group has the expected default values after initialization * @covers phpOMS\Account\Group + * @group framework */ public function testDefault() : void { @@ -78,6 +80,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox The group name and description can be set and retrieved correctly * @covers phpOMS\Account\Group + * @group framework */ public function testSetAndGetGroupNameDescription() : void { @@ -93,6 +96,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox Group permissions can be added and checked for existence * @covers phpOMS\Account\Group + * @group framework */ public function testPermissionHandling() : void { @@ -125,6 +129,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox The default status of the group can be changed to a different valid status * @covers phpOMS\Account\Group + * @group framework */ public function testChangeStatus() : void { @@ -137,6 +142,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase /** * @testdox A group can only have valid group status * @covers phpOMS\Account\Group + * @group framework */ public function testStatusException() : void { diff --git a/tests/Account/PermissionAbstractTest.php b/tests/Account/PermissionAbstractTest.php index 20ba1e43f..adddf236c 100644 --- a/tests/Account/PermissionAbstractTest.php +++ b/tests/Account/PermissionAbstractTest.php @@ -29,6 +29,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission has the expected default values after initialization * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testAbstractDefault() : void { @@ -67,6 +68,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The unit can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testUnitInputOutput() : void { @@ -79,6 +81,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The app can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testAppInputOutput() : void { @@ -91,6 +94,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The module can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testModuleInputOutput() : void { @@ -103,6 +107,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The from can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testFromInputOutput() : void { @@ -115,6 +120,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The type can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testTypeInputOutput() : void { @@ -127,6 +133,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The element can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testElementInputOutput() : void { @@ -139,6 +146,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The component can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testComponentInputOutput() : void { @@ -151,6 +159,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission can be set and returned correctly * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testPermissionInputOutput() : void { @@ -163,6 +172,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Correct permissions are validated * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testValidPermission() : void { @@ -177,6 +187,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid permissions are not validted * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testInvalidPermission() : void { @@ -190,6 +201,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Correct permission flags are validated * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testValidPermissionFlag() : void { @@ -204,6 +216,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid permission flags are not validated * @covers phpOMS\Account\PermissionAbstract + * @group framework */ public function testInvalidPermissionFlag() : void { diff --git a/tests/Account/PermissionTypeTest.php b/tests/Account/PermissionTypeTest.php index a95ec9360..04010fbf6 100644 --- a/tests/Account/PermissionTypeTest.php +++ b/tests/Account/PermissionTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\Account\PermissionType; class PermissionTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class PermissionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class PermissionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Algorithm/Clustering/KmeansTest.php b/tests/Algorithm/Clustering/KmeansTest.php index 83912aa33..877b52835 100644 --- a/tests/Algorithm/Clustering/KmeansTest.php +++ b/tests/Algorithm/Clustering/KmeansTest.php @@ -27,6 +27,7 @@ class KmeansTest extends \PHPUnit\Framework\TestCase /** * @testdox The clustering of points and dynamic check of new points works as expected * @covers phpOMS\Algorithm\Clustering\Kmeans + * @group framework */ public function testKmeans() : void { diff --git a/tests/Algorithm/Clustering/PointTest.php b/tests/Algorithm/Clustering/PointTest.php index 45bba24b7..b00addeb3 100644 --- a/tests/Algorithm/Clustering/PointTest.php +++ b/tests/Algorithm/Clustering/PointTest.php @@ -26,6 +26,7 @@ class PointTest extends \PHPUnit\Framework\TestCase /** * @testdox The point has the expected default values after initialization * @covers phpOMS\Algorithm\Clustering\Point + * @group framework */ public function testDefault() : void { @@ -41,6 +42,7 @@ class PointTest extends \PHPUnit\Framework\TestCase /** * @testdox Coordinates of a point can be set and returned * @covers phpOMS\Algorithm\Clustering\Point + * @group framework */ public function testCoordinateInputOutput() : void { @@ -57,6 +59,7 @@ class PointTest extends \PHPUnit\Framework\TestCase /** * @testdox The group/cluster of a point can be set and returned * @covers phpOMS\Algorithm\Clustering\Point + * @group framework */ public function testGroupInputOutput() : void { @@ -69,6 +72,7 @@ class PointTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a point can be set and returned * @covers phpOMS\Algorithm\Clustering\Point + * @group framework */ public function testNameInputOutput() : void { diff --git a/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php b/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php index f68c1d0be..8e6fbb450 100644 --- a/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php +++ b/tests/Algorithm/CoinMatching/MinimumCoinProblemTest.php @@ -28,6 +28,7 @@ class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase /** * @testdox A value is matched with the minimum quantity of avialable coins. * @covers phpOMS\Algorithm\CoinMatching\MinimumCoinProblem + * @group framework */ public function testMinimumCoins() : void { diff --git a/tests/Algorithm/JobScheduling/JobTest.php b/tests/Algorithm/JobScheduling/JobTest.php index 2757f1f48..7ac95a781 100644 --- a/tests/Algorithm/JobScheduling/JobTest.php +++ b/tests/Algorithm/JobScheduling/JobTest.php @@ -26,6 +26,7 @@ class JobTest extends \PHPUnit\Framework\TestCase /** * @testdox The job has the expected values after initialization * @covers phpOMS\Algorithm\JobScheduling\Job + * @group framework */ public function testDefault() : void { diff --git a/tests/Algorithm/JobScheduling/WeightedTest.php b/tests/Algorithm/JobScheduling/WeightedTest.php index 316721c6d..b65b4ce15 100644 --- a/tests/Algorithm/JobScheduling/WeightedTest.php +++ b/tests/Algorithm/JobScheduling/WeightedTest.php @@ -27,6 +27,7 @@ class WeightedTest extends \PHPUnit\Framework\TestCase /** * @testdox The optimal job combination is selected to maximize the value/profit without overlapping jobs * @covers phpOMS\Algorithm\JobScheduling\Weighted + * @group framework */ public function testNoOverlappingScheduling() : void { @@ -58,6 +59,7 @@ class WeightedTest extends \PHPUnit\Framework\TestCase /** * @testdox A job list with only one job simply returns one job * @covers phpOMS\Algorithm\JobScheduling\Weighted + * @group framework */ public function testSmallList() : void { diff --git a/tests/Algorithm/Knapsack/BackpackTest.php b/tests/Algorithm/Knapsack/BackpackTest.php index d9691cd35..f47ebadd6 100644 --- a/tests/Algorithm/Knapsack/BackpackTest.php +++ b/tests/Algorithm/Knapsack/BackpackTest.php @@ -27,6 +27,7 @@ class BackpackTest extends \PHPUnit\Framework\TestCase /** * @testdox The backpack has the expected values after initialization * @covers phpOMS\Algorithm\Knapsack\Backpack + * @group framework */ public function testDefault() : void { @@ -41,6 +42,7 @@ class BackpackTest extends \PHPUnit\Framework\TestCase /** * @testdox Items can be added to the backpack and automatically change the value and cost the backpack contains * @covers phpOMS\Algorithm\Knapsack\Backpack + * @group framework */ public function testAddItems() : void { diff --git a/tests/Algorithm/Knapsack/BoundedTest.php b/tests/Algorithm/Knapsack/BoundedTest.php index b6b7800e1..dc97973e2 100644 --- a/tests/Algorithm/Knapsack/BoundedTest.php +++ b/tests/Algorithm/Knapsack/BoundedTest.php @@ -28,6 +28,7 @@ class BoundedTest extends \PHPUnit\Framework\TestCase /** * @testdox The optimal item selection in a backpack is calculated in order to optimize the value/profit while considering the available capacity/cost limit * @covers phpOMS\Algorithm\Knapsack\Bounded + * @group framework */ public function testBackpacking() : void { diff --git a/tests/Algorithm/Knapsack/ContinuousTest.php b/tests/Algorithm/Knapsack/ContinuousTest.php index b504e564e..aa6020719 100644 --- a/tests/Algorithm/Knapsack/ContinuousTest.php +++ b/tests/Algorithm/Knapsack/ContinuousTest.php @@ -28,6 +28,7 @@ class ContinuousTest extends \PHPUnit\Framework\TestCase /** * @testdox The optimal item selection in a backpack is calculated in order to optimize the value/profit while considering the available capacity/cost limit [discrete quantities] * @covers phpOMS\Algorithm\Knapsack\Continuous + * @group framework */ public function testBackpacking() : void { @@ -69,6 +70,7 @@ class ContinuousTest extends \PHPUnit\Framework\TestCase /** * @testdox The optimal item selection in a backpack is calculated in order to optimize the value/profit while considering the available capacity/cost limit [continuous quantities] * @covers phpOMS\Algorithm\Knapsack\Continuous + * @group framework */ public function testBackpackingAlternative() : void { diff --git a/tests/Algorithm/Knapsack/ItemTest.php b/tests/Algorithm/Knapsack/ItemTest.php index 7c3f0aa0b..b54a3ec17 100644 --- a/tests/Algorithm/Knapsack/ItemTest.php +++ b/tests/Algorithm/Knapsack/ItemTest.php @@ -26,6 +26,7 @@ class ItemTest extends \PHPUnit\Framework\TestCase /** * @testdox The item has the expected values after initialization * @covers phpOMS\Algorithm\Knapsack\Item + * @group framework */ public function testDefault() : void { diff --git a/tests/Algorithm/PathFinding/AStarNodeTest.php b/tests/Algorithm/PathFinding/AStarNodeTest.php index 1d0f8f39b..43ed5e333 100644 --- a/tests/Algorithm/PathFinding/AStarNodeTest.php +++ b/tests/Algorithm/PathFinding/AStarNodeTest.php @@ -35,6 +35,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node has the expected values after initialization * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testDefault() : void { @@ -48,6 +49,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node can be set closed and checked * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testClosedInputOutput() : void { @@ -58,6 +60,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node can be set opened and checked * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testOpenedInputOutput() : void { @@ -68,6 +71,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The g value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testGInputOutput() : void { @@ -78,6 +82,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The h value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testHInputOutput() : void { @@ -88,6 +93,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The f value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\AStarNode + * @group framework */ public function testFInputOutput() : void { diff --git a/tests/Algorithm/PathFinding/AStarTest.php b/tests/Algorithm/PathFinding/AStarTest.php index 65146cb11..06e8c76fe 100644 --- a/tests/Algorithm/PathFinding/AStarTest.php +++ b/tests/Algorithm/PathFinding/AStarTest.php @@ -70,6 +70,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement * @covers phpOMS\Algorithm\PathFinding\AStar + * @group framework */ public function testPathFindingDiagonal() : void { @@ -113,6 +114,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for straight movement * @covers phpOMS\Algorithm\PathFinding\AStar + * @group framework */ public function testPathFindingStraight() : void { @@ -156,6 +158,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement [one obstacle] * @covers phpOMS\Algorithm\PathFinding\AStar + * @group framework */ public function testPathFindingDiagonalOneObstacle() : void { @@ -199,6 +202,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement [no obstacle] * @covers phpOMS\Algorithm\PathFinding\AStar + * @group framework */ public function testPathFindingDiagonalNoObstacle() : void { diff --git a/tests/Algorithm/PathFinding/GridTest.php b/tests/Algorithm/PathFinding/GridTest.php index 271fb75c6..5600030ed 100644 --- a/tests/Algorithm/PathFinding/GridTest.php +++ b/tests/Algorithm/PathFinding/GridTest.php @@ -31,6 +31,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox By default a grid is empty * @covers phpOMS\Algorithm\PathFinding\Grid + * @group framework */ public function testDefault() : void { @@ -41,6 +42,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox A grid can be created from an array * @covers phpOMS\Algorithm\PathFinding\Grid + * @group framework */ public function testGridFromArray() : void { @@ -66,6 +68,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox A node can be set and returned from the grid * @covers phpOMS\Algorithm\PathFinding\Grid + * @group framework */ public function testNodeInputOutput() : void { @@ -83,6 +86,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox Out of bounds nodes cannot be returned * @covers phpOMS\Algorithm\PathFinding\Grid::getNode + * @group framework */ public function testOutOfBoundsNode() : void { @@ -101,6 +105,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All hoirzontal neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testStraightHorizontalNeighbors() : void { @@ -121,6 +126,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All vertical neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testStraightVerticalNeighbors() : void { @@ -141,6 +147,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox No straight neighbors are found if no straight neighbors exist * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testStraightNoneNeighbors() : void { @@ -159,6 +166,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All straight neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testStraightAllNeighbors() : void { @@ -181,6 +189,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors except blocked diagonal neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalLRNeighbors() : void { @@ -205,6 +214,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors except blocked diagonal neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalURNeighbors() : void { @@ -229,6 +239,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox No diagonal neighbors are found if no neighbors exist * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalNoneNeighbors() : void { @@ -247,6 +258,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All diagonal neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalOnlyNeighbors() : void { @@ -269,6 +281,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors can be found correctly * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalAllNeighbors() : void { @@ -295,6 +308,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors can be found correctly even if one obstacle exists * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalOneObstacleNoBlockNeighbors() : void { @@ -320,6 +334,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox No diagonal neighbors are found if they are blocked on two sides * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalOneObstacleBlockNeighbors() : void { @@ -343,6 +358,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors can be found correctly if no obstacles exists * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalOneObstacleAllNeighbors() : void { @@ -369,6 +385,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox No diagonal neighbors are found if one obstacle exists * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalNoObstacleBlockNeighbors() : void { @@ -392,6 +409,7 @@ class GridTest extends \PHPUnit\Framework\TestCase /** * @testdox All neighbors can be found correctly if no obstacles exist * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors + * @group framework */ public function testDiagonalNoObstacleAllNeighbors() : void { diff --git a/tests/Algorithm/PathFinding/JumpPointNodeTest.php b/tests/Algorithm/PathFinding/JumpPointNodeTest.php index 8b2347dd6..7e5604818 100644 --- a/tests/Algorithm/PathFinding/JumpPointNodeTest.php +++ b/tests/Algorithm/PathFinding/JumpPointNodeTest.php @@ -35,6 +35,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node has the expected values after initialization * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testDefault() : void { @@ -49,6 +50,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node can be set closed and checked * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testClosedInputOutput() : void { @@ -59,6 +61,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node can be set opened and checked * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testOpenedInputOutput() : void { @@ -69,6 +72,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node can be set tested and checked * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testTestedInputOutput() : void { @@ -79,6 +83,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The g value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testGInputOutput() : void { @@ -89,6 +94,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The h value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testHInputOutput() : void { @@ -99,6 +105,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The f value cen be set and returned * @covers phpOMS\Algorithm\PathFinding\JumpPointNode + * @group framework */ public function testFInputOutput() : void { diff --git a/tests/Algorithm/PathFinding/JumpPointSearchTest.php b/tests/Algorithm/PathFinding/JumpPointSearchTest.php index 40b8b5477..47e0f79ad 100644 --- a/tests/Algorithm/PathFinding/JumpPointSearchTest.php +++ b/tests/Algorithm/PathFinding/JumpPointSearchTest.php @@ -70,6 +70,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch + * @group framework */ public function testPathFindingDiagonal() : void { @@ -113,6 +114,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for straight movement * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch + * @group framework */ public function testPathFindingStraight() : void { @@ -156,6 +158,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement [one obstacle] * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch + * @group framework */ public function testPathFindingDiagonalOneObstacle() : void { @@ -199,6 +202,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct path is found for diagonal movement [no obstacle] * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch + * @group framework */ public function testPathFindingDiagonalNoObstacle() : void { diff --git a/tests/Algorithm/PathFinding/NodeTest.php b/tests/Algorithm/PathFinding/NodeTest.php index c401a0dd6..df517e8ba 100644 --- a/tests/Algorithm/PathFinding/NodeTest.php +++ b/tests/Algorithm/PathFinding/NodeTest.php @@ -29,6 +29,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase /** * @testdox The node has the expected values after initialization * @covers phpOMS\Algorithm\PathFinding\Node + * @group framework */ public function testDefault() : void { @@ -45,6 +46,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase /** * @testdox Nodes with equal coordinates are equal * @covers phpOMS\Algorithm\PathFinding\Node + * @group framework */ public function testNodesWithEqualCoordinatesAreEqual() : void { @@ -57,6 +59,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase /** * @testdox Nodes with different coordinates are not equal * @covers phpOMS\Algorithm\PathFinding\Node + * @group framework */ public function testNodesWithDifferentCoordinatesAreNotEqual() : void { @@ -69,6 +72,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A parent node can be set and returned * @covers phpOMS\Algorithm\PathFinding\Node + * @group framework */ public function testParentInputOutput() : void { diff --git a/tests/Algorithm/PathFinding/PathTest.php b/tests/Algorithm/PathFinding/PathTest.php index 2feb3627e..5d799b116 100644 --- a/tests/Algorithm/PathFinding/PathTest.php +++ b/tests/Algorithm/PathFinding/PathTest.php @@ -31,6 +31,7 @@ class PathTest extends \PHPUnit\Framework\TestCase /** * @testdox The path has the expected values after initialization * @covers phpOMS\Algorithm\PathFinding\Path + * @group framework */ public function testDefault() : void { @@ -43,6 +44,7 @@ class PathTest extends \PHPUnit\Framework\TestCase /** * @testdox The diagonal euclidean path length is calculated correctly * @covers phpOMS\Algorithm\PathFinding\Path + * @group framework */ public function testDiagonalPathLength() : void { @@ -66,6 +68,7 @@ class PathTest extends \PHPUnit\Framework\TestCase /** * @testdox The straight euclidean path length is calculated correctly * @covers phpOMS\Algorithm\PathFinding\Path + * @group framework */ public function testStraightPathLength() : void { @@ -89,6 +92,7 @@ class PathTest extends \PHPUnit\Framework\TestCase /** * @testdox The path is correctly expanded in case only jump points are defined * @covers phpOMS\Algorithm\PathFinding\Path + * @group framework */ public function testPathExpansion() : void { diff --git a/tests/Algorithm/Sort/BitonicSortTest.php b/tests/Algorithm/Sort/BitonicSortTest.php index 7da438e1c..45a580da7 100644 --- a/tests/Algorithm/Sort/BitonicSortTest.php +++ b/tests/Algorithm/Sort/BitonicSortTest.php @@ -40,6 +40,7 @@ class BitonicSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -51,6 +52,7 @@ class BitonicSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -66,6 +68,7 @@ class BitonicSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/BubbleSortTest.php b/tests/Algorithm/Sort/BubbleSortTest.php index 2fddebd99..824647668 100644 --- a/tests/Algorithm/Sort/BubbleSortTest.php +++ b/tests/Algorithm/Sort/BubbleSortTest.php @@ -41,6 +41,7 @@ class BubbleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class BubbleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class BubbleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/BucketSortTest.php b/tests/Algorithm/Sort/BucketSortTest.php index ad4b86b16..71406ba57 100644 --- a/tests/Algorithm/Sort/BucketSortTest.php +++ b/tests/Algorithm/Sort/BucketSortTest.php @@ -41,6 +41,7 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { @@ -82,6 +85,7 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase /** * @testdox If no buckets are specified the elements cannot be sorted and an empty result is returned + * @group framework */ public function testNoBuckets() : void { diff --git a/tests/Algorithm/Sort/CocktailShakerSortTest.php b/tests/Algorithm/Sort/CocktailShakerSortTest.php index 1b6cb3832..8482b539e 100644 --- a/tests/Algorithm/Sort/CocktailShakerSortTest.php +++ b/tests/Algorithm/Sort/CocktailShakerSortTest.php @@ -41,6 +41,7 @@ class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/CombSortTest.php b/tests/Algorithm/Sort/CombSortTest.php index bb846279f..272bdb756 100644 --- a/tests/Algorithm/Sort/CombSortTest.php +++ b/tests/Algorithm/Sort/CombSortTest.php @@ -41,6 +41,7 @@ class CombSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class CombSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class CombSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/CycleSortTest.php b/tests/Algorithm/Sort/CycleSortTest.php index 3ca728b87..945d1a818 100644 --- a/tests/Algorithm/Sort/CycleSortTest.php +++ b/tests/Algorithm/Sort/CycleSortTest.php @@ -41,6 +41,7 @@ class CycleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class CycleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class CycleSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/GnomeSortTest.php b/tests/Algorithm/Sort/GnomeSortTest.php index 471dae9d6..9d888a771 100644 --- a/tests/Algorithm/Sort/GnomeSortTest.php +++ b/tests/Algorithm/Sort/GnomeSortTest.php @@ -41,6 +41,7 @@ class GnomeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class GnomeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class GnomeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/HeapSortTest.php b/tests/Algorithm/Sort/HeapSortTest.php index 7e06dbce0..3b3950062 100644 --- a/tests/Algorithm/Sort/HeapSortTest.php +++ b/tests/Algorithm/Sort/HeapSortTest.php @@ -41,6 +41,7 @@ class HeapSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class HeapSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class HeapSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/InsertionSortTest.php b/tests/Algorithm/Sort/InsertionSortTest.php index 05a32998d..6224e36ab 100644 --- a/tests/Algorithm/Sort/InsertionSortTest.php +++ b/tests/Algorithm/Sort/InsertionSortTest.php @@ -41,6 +41,7 @@ class InsertionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class InsertionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class InsertionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/IntroSortTest.php b/tests/Algorithm/Sort/IntroSortTest.php index f0b46a9ec..4f4262370 100644 --- a/tests/Algorithm/Sort/IntroSortTest.php +++ b/tests/Algorithm/Sort/IntroSortTest.php @@ -41,6 +41,7 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -96,6 +98,7 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/MergeSortTest.php b/tests/Algorithm/Sort/MergeSortTest.php index 335980b94..c2a3335a3 100644 --- a/tests/Algorithm/Sort/MergeSortTest.php +++ b/tests/Algorithm/Sort/MergeSortTest.php @@ -41,6 +41,7 @@ class MergeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class MergeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class MergeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/OddEvenSortTest.php b/tests/Algorithm/Sort/OddEvenSortTest.php index 90de4bf7d..0dc855fc9 100644 --- a/tests/Algorithm/Sort/OddEvenSortTest.php +++ b/tests/Algorithm/Sort/OddEvenSortTest.php @@ -41,6 +41,7 @@ class OddEvenSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class OddEvenSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class OddEvenSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/PancakeSortTest.php b/tests/Algorithm/Sort/PancakeSortTest.php index 784593f5f..37ffdffe0 100644 --- a/tests/Algorithm/Sort/PancakeSortTest.php +++ b/tests/Algorithm/Sort/PancakeSortTest.php @@ -41,6 +41,7 @@ class PancakeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class PancakeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class PancakeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/QuickSortTest.php b/tests/Algorithm/Sort/QuickSortTest.php index e6304176a..abe3adedc 100644 --- a/tests/Algorithm/Sort/QuickSortTest.php +++ b/tests/Algorithm/Sort/QuickSortTest.php @@ -41,6 +41,7 @@ class QuickSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class QuickSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class QuickSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/SelectionSortTest.php b/tests/Algorithm/Sort/SelectionSortTest.php index 3e445f045..9c46f0bca 100644 --- a/tests/Algorithm/Sort/SelectionSortTest.php +++ b/tests/Algorithm/Sort/SelectionSortTest.php @@ -41,6 +41,7 @@ class SelectionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class SelectionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class SelectionSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/ShellSortTest.php b/tests/Algorithm/Sort/ShellSortTest.php index e4081752f..ff2417015 100644 --- a/tests/Algorithm/Sort/ShellSortTest.php +++ b/tests/Algorithm/Sort/ShellSortTest.php @@ -41,6 +41,7 @@ class ShellSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class ShellSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class ShellSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/StoogeSortTest.php b/tests/Algorithm/Sort/StoogeSortTest.php index bde8bcb8d..a540c8104 100644 --- a/tests/Algorithm/Sort/StoogeSortTest.php +++ b/tests/Algorithm/Sort/StoogeSortTest.php @@ -41,6 +41,7 @@ class StoogeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class StoogeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -67,6 +69,7 @@ class StoogeSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/Algorithm/Sort/TimSortTest.php b/tests/Algorithm/Sort/TimSortTest.php index 8ee5eed4d..68fee5edc 100644 --- a/tests/Algorithm/Sort/TimSortTest.php +++ b/tests/Algorithm/Sort/TimSortTest.php @@ -41,6 +41,7 @@ class TimSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list with one element returns the list with the element itself + * @group framework */ public function testSmallList() : void { @@ -52,6 +53,7 @@ class TimSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in ASC order + * @group framework */ public function testSortASC() : void { @@ -96,6 +98,7 @@ class TimSortTest extends \PHPUnit\Framework\TestCase /** * @testdox A list ot elements can be sorted in DESC order + * @group framework */ public function testSortDESC() : void { diff --git a/tests/ApplicationAbstractTest.php b/tests/ApplicationAbstractTest.php index 3f310d1d0..c25415ea4 100644 --- a/tests/ApplicationAbstractTest.php +++ b/tests/ApplicationAbstractTest.php @@ -26,6 +26,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Application values can be set and returned * @covers phpOMS\ApplicationAbstract + * @group framework */ public function testInputOutput() : void { @@ -38,6 +39,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Application values cannot be overwritten * @covers phpOMS\ApplicationAbstract + * @group framework */ public function testInvalidInputOutput() : void { diff --git a/tests/Asset/AssetManagerTest.php b/tests/Asset/AssetManagerTest.php index 62fd6e105..affa3bcc7 100644 --- a/tests/Asset/AssetManagerTest.php +++ b/tests/Asset/AssetManagerTest.php @@ -34,6 +34,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The manager has the expected member variables + * @group framework */ public function testAttributes() : void { @@ -45,6 +46,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The manager has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -54,6 +56,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An asset can be added to the manager + * @group framework */ public function testAddAsset() : void { @@ -66,6 +69,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An asset can be retrieved from the manager + * @group framework */ public function testRetrieveAsset() : void { @@ -75,6 +79,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An asset can only be added once to the manager (no duplication unless overwritten) + * @group framework */ public function testInvalidAssetReplacement() : void { @@ -88,6 +93,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An asset can be replaced upon request + * @group framework */ public function testAssetReplacement() : void { @@ -106,6 +112,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An asset can be removed from the manager + * @group framework */ public function testAssetRemove() : void { diff --git a/tests/Asset/AssetTypeTest.php b/tests/Asset/AssetTypeTest.php index 163ee0da3..c0a1fb7f0 100644 --- a/tests/Asset/AssetTypeTest.php +++ b/tests/Asset/AssetTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\Asset\AssetType; class AssetTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class AssetTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class AssetTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Auth/AuthTest.php b/tests/Auth/AuthTest.php index 5c8f39a6c..d2a94a148 100644 --- a/tests/Auth/AuthTest.php +++ b/tests/Auth/AuthTest.php @@ -27,6 +27,7 @@ class AuthTest extends \PHPUnit\Framework\TestCase { /** * @testdox The default http session doesn't authenticate an account + * @group framework */ public function testAuthWithEmptyHttpSession() : void { diff --git a/tests/Auth/LoginReturnTypeTest.php b/tests/Auth/LoginReturnTypeTest.php index e93e770bb..1815f2f97 100644 --- a/tests/Auth/LoginReturnTypeTest.php +++ b/tests/Auth/LoginReturnTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\Auth\LoginReturnType; class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/AutoloaderTest.php b/tests/AutoloaderTest.php index 24fde0438..2a7efa8da 100644 --- a/tests/AutoloaderTest.php +++ b/tests/AutoloaderTest.php @@ -26,6 +26,7 @@ class AutoloaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Classes can be checked for existence * @covers phpOMS\Autoloader + * @group framework */ public function testAutoloader() : void { diff --git a/tests/Business/Finance/DepreciationTest.php b/tests/Business/Finance/DepreciationTest.php index 98444a829..5369b37b6 100644 --- a/tests/Business/Finance/DepreciationTest.php +++ b/tests/Business/Finance/DepreciationTest.php @@ -25,6 +25,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase { /** * @testdox The straight line deprecition and reverse value calculations are correct + * @group framework */ public function testStraightLine() : void { @@ -38,6 +39,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase /** * @testdox The arithmetic degressiv deprecition and reverse value calculations are correct + * @group framework */ public function testArithmeticDegressivDepreciation() : void { @@ -53,6 +55,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase /** * @testdox The arithmetic progressiv deprecition and reverse value calculations are correct + * @group framework */ public function testArithmeticProgressivDepreciation() : void { @@ -68,6 +71,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase /** * @testdox The geometric progressiv deprecition and reverse value calculations are correct + * @group framework */ public function testGeometricProgressivDepreciation() : void { @@ -83,6 +87,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase /** * @testdox The geometric degressiv deprecition 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 bbcb038a7..36451f20b 100644 --- a/tests/Business/Finance/FinanceFormulasTest.php +++ b/tests/Business/Finance/FinanceFormulasTest.php @@ -25,6 +25,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase { /** * @testdox The annual percentage yield (APY) and reverse value calculations are correct + * @group framework */ public function testAnnualPercentageYield() : void { @@ -40,6 +41,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The future value of annuity (FVA) and reverse value calculations are correct + * @group framework */ public function testFutureValueOfAnnuity() : void { @@ -57,6 +59,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The future value of annuity continuous compounding (FVACC) and reverse value calculations are correct + * @group framework */ public function testFutureValueOfAnnuityContinuousCompounding() : void { @@ -74,6 +77,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The annuity payment from the present value (PV) and reverse value calculations are correct + * @group framework */ public function testAnnuityPaymentPV() : void { @@ -91,6 +95,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The annuity payment from the future value (FV) and reverse value calculations are correct + * @group framework */ public function testAnnuityPaymentFV() : void { @@ -108,6 +113,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The annuity payment from the present value (PV) and reverse value calculations are correct + * @group framework */ public function testAnnutiyPaymentFactorPV() : void { @@ -123,6 +129,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The present value of the annuity is correct + * @group framework */ public function testPresentValueOfAnnuity() : void { @@ -140,6 +147,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The present value annuity factor of the annuity is correct + * @group framework */ public function testPresentValueAnnuityFactor() : void { @@ -155,6 +163,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The due present value the annuity is correct + * @group framework */ public function testPresentValueOfAnnuityDue() : void { @@ -173,6 +182,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The due future value the annuity is correct + * @group framework */ public function testFutureValueOfAnnuityDue() : void { @@ -191,6 +201,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The relative market share calculations by shares and ales are correct + * @group framework */ public function testRelativeMarketShare() : void { @@ -200,6 +211,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The asset ratio calculations are correct + * @group framework */ public function testAssetRatios() : void { @@ -209,6 +221,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Balance ratio calculations for DII, Receivables/Turnover, and more are correct + * @group framework */ public function testBalanceRatios() : void { @@ -220,6 +233,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Dept ratios for dept coverage, dept to equity and dept to income are correct + * @group framework */ public function testDeptRatios() : void { @@ -231,6 +245,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Return on balance statement positions are correct (e.g. return on assets, on equity) + * @group framework */ public function testReturnOnBalancePositions() : void { @@ -241,6 +256,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Balance / P&L ratios are correct (e.g. inventory turnover, net profit margin) + * @group framework */ public function testBalancePLRatios() : void { @@ -263,6 +279,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Compound calculations for interest, principal and periods are correct + * @group framework */ public function testCompound() : void { @@ -281,6 +298,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Continuous compound calculations for interest, principal and periods are correct + * @group framework */ public function testContinuousCompounding() : void { @@ -300,6 +318,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Calculations for interest, principal and periods are correct + * @group framework */ public function testSimpleInterest() : void { @@ -317,6 +336,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The descounted payback period is correct + * @group framework */ public function testDiscountedPaybackPeriod() : void { @@ -329,6 +349,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Test the correct calculation of the growth rate in order to double and vice versa + * @group framework */ public function testDoublingTime() : void { @@ -340,6 +361,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Test the correct calculation of the growth rate in order to double and vice versa with continuous compounding + * @group framework */ public function testDoublingTimeContinuousCompounding() : void { @@ -351,6 +373,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox Calculations for equivalent annual annuity are correct + * @group framework */ public function testEquivalentAnnualAnnuity() : void { @@ -365,6 +388,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The free cash flow to equity calculation is correct (how much cash is available after expenses and dept payments) + * @group framework */ public function testFreeCashFlowToEquity() : void { @@ -379,6 +403,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The free cash flow to firm calculation is correct (how much cash is available after expenses) + * @group framework */ public function testFreeCashFlowToFirm() : void { @@ -393,6 +418,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The future value calculation is correct + * @group framework */ public function testFutureValue() : void { @@ -405,6 +431,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The future value calculation including continuous compounding is correct + * @group framework */ public function testFutureValueContinuousCompounding() : void { @@ -417,6 +444,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The future value factor calculation is correct + * @group framework */ public function testValueFactor() : void { @@ -429,6 +457,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the geometric mean of multiple return rates is correct + * @group framework */ public function testGeometricMeanReturn() : void { @@ -439,6 +468,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the future value of the growing annuity is correct + * @group framework */ public function testGrowingAnnuityFV() : void { @@ -452,6 +482,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the payment based on the present value of the growing annuity is correct + * @group framework */ public function testGrowingAnnuityPaymentPV() : void { @@ -465,6 +496,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the payment based on the future value of the growing annuity is correct + * @group framework */ public function testGrowingAnnuityPaymentFV() : void { @@ -478,6 +510,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the present value of the growing annuity is correct + * @group framework */ public function testGrowingAnnuityPV() : void { @@ -491,6 +524,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the present value of the growing perpetuity is correct + * @group framework */ public function testGrowingPerpetuityPV() : void { @@ -503,6 +537,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the net present value is correct + * @group framework */ public function testNetPresentValue() : void { @@ -514,6 +549,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox No cash flows in the net prsent value calculation result in 0 + * @group framework */ public function testEmptyNetPresentValue() : void { @@ -522,6 +558,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the real rate of return is correct + * @group framework */ public function testRealRateOfReturn() : void { @@ -533,6 +570,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the net working capital is correct + * @group framework */ public function testNetWorkingCapital() : void { @@ -541,6 +579,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The periods to reach a future value based on the present value is calculated correctly + * @group framework */ public function testNumberOfPeriodsPVFV() : void { @@ -553,6 +592,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the present value is correct + * @group framework */ public function testPresentValue() : void { @@ -565,6 +605,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the present value using continuous compounding is correct + * @group framework */ public function testPresentValueContinuousCompounding() : void { diff --git a/tests/Business/Finance/LoanTest.php b/tests/Business/Finance/LoanTest.php index c0b5e468d..343b6680a 100644 --- a/tests/Business/Finance/LoanTest.php +++ b/tests/Business/Finance/LoanTest.php @@ -25,6 +25,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase { /** * @testdox The loan to deposit ratio is correct + * @group framework */ public function testLoanToDepositRatio() : void { @@ -33,6 +34,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase /** * @testdox The loan to value ratio is correct + * @group framework */ public function testLoanToValueRatio() : void { @@ -41,6 +43,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase /** * @testdox The balloon loan payments are correct for a given balloon + * @group framework */ public function testPaymentsOnBalloonLoan() : void { @@ -54,6 +57,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase /** * @testdox The balloon loan residual value (balloon) is correct for given payments + * @group framework */ public function testBalloonBalanceOfLoan() : void { @@ -67,6 +71,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase /** * @testdox The loan payments are correct for a given interest rate and period [continuous compounding] + * @group framework */ public function testLoanPayment() : void { @@ -79,6 +84,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase /** * @testdox The residual value is correct for a given payment amount, interest rate and period [continuous compounding] + * @group framework */ public function testRemainingBalanceLoan() : void { diff --git a/tests/Business/Finance/LorenzkurveTest.php b/tests/Business/Finance/LorenzkurveTest.php index c70aec983..cb2ff83d7 100644 --- a/tests/Business/Finance/LorenzkurveTest.php +++ b/tests/Business/Finance/LorenzkurveTest.php @@ -25,6 +25,7 @@ class LorenzkurveTest extends \PHPUnit\Framework\TestCase { /** * @testdox The gini coefficient calculation is correct + * @group framework */ public function testGiniCoefficient() : void { diff --git a/tests/Business/Finance/StockBondsTest.php b/tests/Business/Finance/StockBondsTest.php index dcb9b32dc..a360cf644 100644 --- a/tests/Business/Finance/StockBondsTest.php +++ b/tests/Business/Finance/StockBondsTest.php @@ -25,6 +25,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase { /** * @testdox The calculation of various stock/bond related ratios/yields is correct + * @group framework */ public function testRatios() : void { @@ -42,6 +43,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the bond yield based on face value and price is correct + * @group framework */ public function testBondEquivalentYield() : void { @@ -50,6 +52,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the return of the capital asset pricing model is correct + * @group framework */ public function testExpectedReturnCAPM() : void { @@ -58,6 +61,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The capital gains yield calculation is correct + * @group framework */ public function testCapitalGainsYield() : void { @@ -66,6 +70,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The diluted earnings per share calculation is correct + * @group framework */ public function testDilutedEarningsPerShare() : void { @@ -74,6 +79,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the absolute return for multiple holding periods is correct + * @group framework */ public function testHoldingPeriodReturn() : void { @@ -84,6 +90,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The tax equivalent yield is calculated correctly + * @group framework */ public function testTaxEquivalentYield() : void { @@ -95,6 +102,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The net asset value is calculated correctly + * @group framework */ public function testNetAssetValue() : void { @@ -107,6 +115,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the present value of a stock with constant growth rate is correct + * @group framework */ public function testPresentValueOfStockConstantGrowth() : void { @@ -119,6 +128,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The total stock return including dividends and sales price is correct + * @group framework */ public function testTotalStockReturn() : void { @@ -131,6 +141,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the yield of a bond is correct + * @group framework */ public function testYieldToMaturity() : void { @@ -144,6 +155,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of value of the zero coupon bond is correct + * @group framework */ public function testZeroCouponBondValue() : void { @@ -156,6 +168,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase /** * @testdox The calculation of the yield of a zero coupon bond is correct + * @group framework */ public function testZeroCouponBondEffectiveYield() : void { diff --git a/tests/Business/Marketing/MetricsTest.php b/tests/Business/Marketing/MetricsTest.php index ddbe9087b..aa8877b7d 100644 --- a/tests/Business/Marketing/MetricsTest.php +++ b/tests/Business/Marketing/MetricsTest.php @@ -25,6 +25,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase { /** * @testdox Test the correctnes 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 badf16840..717ecf6d0 100644 --- a/tests/Business/Marketing/NetPromoterScoreTest.php +++ b/tests/Business/Marketing/NetPromoterScoreTest.php @@ -25,6 +25,7 @@ class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase { /** * @testdox The net promoter has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -35,6 +36,7 @@ class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase /** * @testdox The net promotor score, detractors, passives and promotors are correct + * @group framework */ public function testScoreDetractorPassivePromotor() : void { diff --git a/tests/Business/Programming/MetricsTest.php b/tests/Business/Programming/MetricsTest.php index 8726b4bbb..1936c8a5e 100644 --- a/tests/Business/Programming/MetricsTest.php +++ b/tests/Business/Programming/MetricsTest.php @@ -25,6 +25,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase { /** * @testdox Test correctness of the ABC calculation + * @group framework */ public function testABCMetric() : void { @@ -33,6 +34,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase /** * @testdox Test correctness of CRAP score + * @group framework */ public function testCRAPMetric() : void { diff --git a/tests/Business/Sales/MarketShareEstimationTest.php b/tests/Business/Sales/MarketShareEstimationTest.php index e5667856d..65ac09ca1 100644 --- a/tests/Business/Sales/MarketShareEstimationTest.php +++ b/tests/Business/Sales/MarketShareEstimationTest.php @@ -24,6 +24,7 @@ class MarketShareEstimationTest extends \PHPUnit\Framework\TestCase { /** * @testdox The rank calculated with Zipf is correct + * @group framework */ public function testZipfRank() : void { @@ -34,6 +35,7 @@ class MarketShareEstimationTest extends \PHPUnit\Framework\TestCase /** * @testdox The market share by rank calculated with Zipf is correct + * @group framework */ public function testZipfShare() : void { diff --git a/tests/Config/OptionsTraitTest.php b/tests/Config/OptionsTraitTest.php index 51c469dca..01bbd440d 100644 --- a/tests/Config/OptionsTraitTest.php +++ b/tests/Config/OptionsTraitTest.php @@ -28,6 +28,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox The option helper has the expected attributes + * @group framework */ public function testOptionTraitMembers() : void { @@ -41,6 +42,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox The option helper has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -54,6 +56,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox Options can be added to the helper + * @group framework */ public function testAdd() : void { @@ -68,6 +71,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox Options can be overwritten/changed + * @group framework */ public function testOverwrite() : void { @@ -94,6 +98,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiple options can be added to the helper in one go + * @group framework */ public function testAddMultiple() : void { @@ -118,6 +123,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiple options can be retrieved + * @group framework */ public function testGetMultiple() : void { diff --git a/tests/DataStorage/Cache/CachePoolTest.php b/tests/DataStorage/Cache/CachePoolTest.php index 1ef50fc0a..8e90454ca 100644 --- a/tests/DataStorage/Cache/CachePoolTest.php +++ b/tests/DataStorage/Cache/CachePoolTest.php @@ -26,6 +26,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase { /** * @testdox The pool has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -37,6 +38,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox New cache connections can be added to the pool + * @group framework */ public function testAdd() : void { @@ -47,6 +49,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache connections cannot be overwritten with a different cache connection + * @group framework */ public function testOverwrite() : void { @@ -58,6 +61,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache connections can be accessed with an identifier + * @group framework */ public function testGet() : void { @@ -70,6 +74,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox By default a null cache is returned if no cache connection exists for the identifier + * @group framework */ public function testGetDefault() : void { @@ -80,6 +85,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache connections can created by the pool and automatically get added but not overwritten + * @group framework */ public function testCreate() : void { @@ -92,6 +98,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache connections can be removed from the pool + * @group framework */ public function testRemove() : void { @@ -106,6 +113,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Removing a cache with an invalid identifier will result in no actions + * @group framework */ public function testRemoveInvalid() : void { diff --git a/tests/DataStorage/Cache/CacheStatusTest.php b/tests/DataStorage/Cache/CacheStatusTest.php index 82e982254..c915e7400 100644 --- a/tests/DataStorage/Cache/CacheStatusTest.php +++ b/tests/DataStorage/Cache/CacheStatusTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\CacheStatus; class CacheStatusTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class CacheStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class CacheStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Cache/CacheTypeTest.php b/tests/DataStorage/Cache/CacheTypeTest.php index 5cd8bd99d..6b2dc532a 100644 --- a/tests/DataStorage/Cache/CacheTypeTest.php +++ b/tests/DataStorage/Cache/CacheTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\CacheType; class CacheTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class CacheTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class CacheTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Cache/Connection/CacheValueTypeTest.php b/tests/DataStorage/Cache/Connection/CacheValueTypeTest.php index 3a5d3566e..af5c7e91c 100644 --- a/tests/DataStorage/Cache/Connection/CacheValueTypeTest.php +++ b/tests/DataStorage/Cache/Connection/CacheValueTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\Connection\CacheValueType; class CacheValueTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class CacheValueTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class CacheValueTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Cache/Connection/ConnectionFactoryTest.php b/tests/DataStorage/Cache/Connection/ConnectionFactoryTest.php index dbebb3d13..8671fb7d2 100644 --- a/tests/DataStorage/Cache/Connection/ConnectionFactoryTest.php +++ b/tests/DataStorage/Cache/Connection/ConnectionFactoryTest.php @@ -26,6 +26,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase { /** * @testdox The file cache can be created + * @group framework */ public function testCreateFileCache() : void { @@ -37,6 +38,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The memcached cache can be created + * @group framework */ public function testCreateMemCached() : void { @@ -54,6 +56,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The redis cache can be created + * @group framework */ public function testCreateRedisCache() : void { @@ -71,6 +74,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox An invalid cache type results in an exception + * @group framework */ public function testInvalidCacheType() : void { diff --git a/tests/DataStorage/Cache/Connection/FileCacheTest.php b/tests/DataStorage/Cache/Connection/FileCacheTest.php index 3f4f6e40c..bd1e99dac 100644 --- a/tests/DataStorage/Cache/Connection/FileCacheTest.php +++ b/tests/DataStorage/Cache/Connection/FileCacheTest.php @@ -49,6 +49,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The file cache connection has the expected default values after initialization * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testDefault() : void { @@ -71,6 +72,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The connection to a dedicated cache directory can be established (none-exising directories get created) * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testConnect() : void { @@ -80,6 +82,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Different cache data (types) can be set and returned * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testSetInputOutput() : void { @@ -111,6 +114,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can bet added and returned * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testAddInputOutput() : void { @@ -121,6 +125,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data cannot be added if it already exists * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testInvalidOverwrite() : void { @@ -132,6 +137,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be replaced * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testReplace() : void { @@ -145,6 +151,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing cache data cannot be replaced * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testInvalidReplace() : void { @@ -154,6 +161,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be deleted * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testDelete() : void { @@ -167,6 +175,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache correctly handles general cache information * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testStats() : void { @@ -189,6 +198,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache can be flushed * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testFlush() : void { @@ -214,6 +224,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can be set and returned with expiration limits * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testUnexpiredInputOutput() : void { @@ -224,6 +235,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data cannot be returned * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testExpiredInputOutput() : void { @@ -237,6 +249,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be forced to return * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testForceExpiredInputOutput() : void { @@ -248,6 +261,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired cache data connot be delete if lower expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testInvalidDeleteUnexpired() : void { @@ -258,6 +272,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be deleted if equal expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testDeleteExpired() : void { @@ -269,6 +284,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired data can be force deleted with lower expiration date * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testForceDeleteUnexpired() : void { @@ -281,6 +297,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cach data can be flushed by expiration date * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testFlushExpired() : void { @@ -294,6 +311,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A bad cache status will prevent all cache actions * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testBadCacheStatus() : void { @@ -312,6 +330,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid cache connection will throw an InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testInvalidCachePath() : void { @@ -323,6 +342,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid data type will throw an InvalidArgumentException * @covers phpOMS\DataStorage\Cache\Connection\FileCache + * @group framework */ public function testInvalidDataType() : void { diff --git a/tests/DataStorage/Cache/Connection/MemCachedTest.php b/tests/DataStorage/Cache/Connection/MemCachedTest.php index e99839bf9..97b7d09f1 100644 --- a/tests/DataStorage/Cache/Connection/MemCachedTest.php +++ b/tests/DataStorage/Cache/Connection/MemCachedTest.php @@ -42,6 +42,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox The memcached connection has the expected default values after initialization * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testDefault() : void { @@ -64,6 +65,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox The connection to a cache can be established (none-exising directories get created) * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testConnect() : void { @@ -77,6 +79,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Different cache data (types) can be set and returned * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testSetInputOutput() : void { @@ -108,6 +111,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can bet added and returned * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testAddInputOutput() : void { @@ -118,6 +122,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data cannot be added if it already exists * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidOverwrite() : void { @@ -129,6 +134,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be replaced * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testReplace() : void { @@ -142,6 +148,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing cache data cannot be replaced * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidReplace() : void { @@ -151,6 +158,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be deleted * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testDelete() : void { @@ -164,6 +172,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache correctly handles general cache information * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testStats() : void { @@ -186,6 +195,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache can be flushed * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testFlush() : void { @@ -211,6 +221,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can be set and returned with expiration limits * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testUnexpiredInputOutput() : void { @@ -221,6 +232,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data cannot be returned * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testExpiredInputOutput() : void { @@ -234,6 +246,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be forced to return * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testForceExpiredInputOutput() : void { @@ -245,6 +258,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired cache data connot be delete if lower expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidDeleteUnexpired() : void { @@ -255,6 +269,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be deleted if equal expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testDeleteExpired() : void { @@ -266,6 +281,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired data can be force deleted with lower expiration date * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testForceDeleteUnexpired() : void { @@ -278,6 +294,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox Cach data can be flushed by expiration date * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testFlushExpired() : void { @@ -291,6 +308,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox A bad cache status will prevent all cache actions * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testBadCacheStatus() : void { @@ -309,6 +327,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid data type will throw an InvalidArgumentException * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidDataType() : void { @@ -320,6 +339,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid host throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidCacheHost() : void { @@ -334,6 +354,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid port throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\MemCached + * @group framework */ public function testInvalidCachePort() : void { diff --git a/tests/DataStorage/Cache/Connection/NullCacheTest.php b/tests/DataStorage/Cache/Connection/NullCacheTest.php index 4b6864405..2e2b4cfae 100644 --- a/tests/DataStorage/Cache/Connection/NullCacheTest.php +++ b/tests/DataStorage/Cache/Connection/NullCacheTest.php @@ -27,6 +27,7 @@ class NullCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The default cache has the expected default values after initialization * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testCache() : void { diff --git a/tests/DataStorage/Cache/Connection/RedisCacheTest.php b/tests/DataStorage/Cache/Connection/RedisCacheTest.php index 5e1035270..cf3d58627 100644 --- a/tests/DataStorage/Cache/Connection/RedisCacheTest.php +++ b/tests/DataStorage/Cache/Connection/RedisCacheTest.php @@ -42,6 +42,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The redis cache connection has the expected default values after initialization * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testDefault() : void { @@ -64,6 +65,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The connection to a cache can be established (none-exising directories get created) * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testConnect() : void { @@ -78,6 +80,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Different cache data (types) can be set and returned * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testSetInputOutput() : void { @@ -109,6 +112,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can bet added and returned * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testAddInputOutput() : void { @@ -119,6 +123,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data cannot be added if it already exists * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidOverwrite() : void { @@ -130,6 +135,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be replaced * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testReplace() : void { @@ -143,6 +149,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing cache data cannot be replaced * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidReplace() : void { @@ -152,6 +159,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing cache data can be deleted * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testDelete() : void { @@ -165,6 +173,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache correctly handles general cache information * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testStats() : void { @@ -187,6 +196,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox The cache can be flushed * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testFlush() : void { @@ -212,6 +222,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cache data can be set and returned with expiration limits * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testUnexpiredInputOutput() : void { @@ -222,6 +233,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data cannot be returned * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testExpiredInputOutput() : void { @@ -235,6 +247,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be forced to return * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testForceExpiredInputOutput() : void { @@ -246,6 +259,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired cache data connot be delete if lower expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidDeleteUnexpired() : void { @@ -256,6 +270,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Expired cache data can be deleted if equal expiration is defined * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testDeleteExpired() : void { @@ -267,6 +282,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Unexpired data can be force deleted with lower expiration date * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testForceDeleteUnexpired() : void { @@ -279,6 +295,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox Cach data can be flushed by expiration date * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testFlushExpired() : void { @@ -292,6 +309,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A bad cache status will prevent all cache actions * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testBadCacheStatus() : void { @@ -311,6 +329,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid host throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidCacheHost() : void { @@ -325,6 +344,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid port throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidCachePort() : void { @@ -339,6 +359,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Cache\Connection\RedisCache + * @group framework */ public function testInvalidCacheDatabase() : void { diff --git a/tests/DataStorage/Cookie/CookieJarTest.php b/tests/DataStorage/Cookie/CookieJarTest.php index a9f0730e7..fa0df4f68 100644 --- a/tests/DataStorage/Cookie/CookieJarTest.php +++ b/tests/DataStorage/Cookie/CookieJarTest.php @@ -32,6 +32,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox The cookie jar has the expected default values and functionality after initialization + * @group framework */ public function testDefault() : void { @@ -42,6 +43,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox Cookie values can be set and returned + * @group framework */ public function testCookieInputOutput() : void { @@ -54,6 +56,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox Cookie values cannot be overwritten + * @group framework */ public function testInvalidOverwrite() : void { @@ -63,6 +66,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox Cookie values can be forced to overwrite + * @group framework */ public function testOverwrite() : void { @@ -72,6 +76,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox Cookie values can be removed + * @group framework */ public function testRemove() : void { @@ -81,6 +86,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing cookie values cannot be removed + * @group framework */ public function testInvalidRemove() : void { @@ -91,6 +97,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox Values cannot be removed from a locked cookie and throws a LockException + * @group framework */ public function testDeleteLocked() : void { @@ -104,6 +111,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase /** * @testdox A locked coockie cannot be saved and throws a LockException + * @group framework */ public function testSaveLocked() : void { diff --git a/tests/DataStorage/Database/Connection/ConnectionFactoryTest.php b/tests/DataStorage/Database/Connection/ConnectionFactoryTest.php index dd851e669..1b76092ec 100644 --- a/tests/DataStorage/Database/Connection/ConnectionFactoryTest.php +++ b/tests/DataStorage/Database/Connection/ConnectionFactoryTest.php @@ -30,6 +30,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The mysql connection can be successfully created * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory + * @group framework */ public function testCreateMysql() : void { @@ -50,6 +51,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The postgresql connection can be successfully created * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory + * @group framework */ public function testCreatePostgres() : void { @@ -70,6 +72,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The sqlserver connection can be successfully created * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory + * @group framework */ public function testCreateSqlsrv() : void { @@ -90,6 +93,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The sqlite connection can be successfully created * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory + * @group framework */ public function testCreateSqlite() : void { @@ -110,6 +114,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database type throws a InvalidArgumentException * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory + * @group framework */ public function testInvalidDatabaseType() : void { diff --git a/tests/DataStorage/Database/Connection/MysqlConnectionTest.php b/tests/DataStorage/Database/Connection/MysqlConnectionTest.php index 03c5190f8..c1846723d 100644 --- a/tests/DataStorage/Database/Connection/MysqlConnectionTest.php +++ b/tests/DataStorage/Database/Connection/MysqlConnectionTest.php @@ -36,6 +36,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox Valid mysql connection data result in a valid database connection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testConnect() : void { @@ -51,6 +52,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidDatabaseType() : void { @@ -65,6 +67,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database host throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidHost() : void { @@ -79,6 +82,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database port throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidPort() : void { @@ -93,6 +97,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidDatabase() : void { @@ -107,6 +112,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database login throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidLogin() : void { @@ -121,6 +127,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database password throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidPassword() : void { @@ -135,6 +142,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidDatabaseTypeName() : void { @@ -149,6 +157,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection + * @group framework */ public function testInvalidDatabaseName() : void { diff --git a/tests/DataStorage/Database/Connection/PostgresConnectionTest.php b/tests/DataStorage/Database/Connection/PostgresConnectionTest.php index 67a17031e..0a18ad8f9 100644 --- a/tests/DataStorage/Database/Connection/PostgresConnectionTest.php +++ b/tests/DataStorage/Database/Connection/PostgresConnectionTest.php @@ -35,6 +35,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox Valid postgresql connection data result in a valid database connection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testConnect() : void { @@ -49,6 +50,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidDatabaseType() : void { @@ -62,6 +64,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database host throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidHost() : void { @@ -75,6 +78,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database port throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidPort() : void { @@ -88,6 +92,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidDatabase() : void { @@ -101,6 +106,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database login throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidLogin() : void { @@ -114,6 +120,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database password throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidPassword() : void { @@ -127,6 +134,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection + * @group framework */ public function testInvalidDatabaseTypeName() : void { @@ -139,6 +147,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase /** * todo: apparently this doesn't throw an exception in postgresql?! + * @group framework */ public function testInvalidDatabaseName() : void { diff --git a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php index a42b9160d..e2838e02e 100644 --- a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php +++ b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php @@ -35,6 +35,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox Valid sqlite connection data result in a valid database connection * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection + * @group framework */ public function testConnect() : void { @@ -47,6 +48,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection + * @group framework */ public function testInvalidDatabaseType() : void { @@ -60,6 +62,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection + * @group framework */ public function testInvalidDatabase() : void { diff --git a/tests/DataStorage/Database/Connection/SqlServerConnectionTest.php b/tests/DataStorage/Database/Connection/SqlServerConnectionTest.php index 46677121b..e0fd4b92a 100644 --- a/tests/DataStorage/Database/Connection/SqlServerConnectionTest.php +++ b/tests/DataStorage/Database/Connection/SqlServerConnectionTest.php @@ -36,6 +36,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox Valid sqlserver connection data result in a valid database connection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testConnect() : void { @@ -50,6 +51,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidDatabaseType() : void { @@ -63,6 +65,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database host throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidHost() : void { @@ -76,6 +79,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database port throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidPort() : void { @@ -89,6 +93,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidDatabase() : void { @@ -102,6 +107,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database login throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidLogin() : void { @@ -115,6 +121,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A missing database password throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidPassword() : void { @@ -128,6 +135,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database type throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidDatabaseTypeName() : void { @@ -141,6 +149,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid database throws a InvalidConnectionConfigException * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection + * @group framework */ public function testInvalidDatabaseName() : void { diff --git a/tests/DataStorage/Database/DataMapperAbstractTest.php b/tests/DataStorage/Database/DataMapperAbstractTest.php index 289def5ba..5d7ca9ec7 100644 --- a/tests/DataStorage/Database/DataMapperAbstractTest.php +++ b/tests/DataStorage/Database/DataMapperAbstractTest.php @@ -152,6 +152,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper has the expected default values after initialization * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testDefault() : void { @@ -163,6 +164,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully creates a database entry of a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testCreate() : void { @@ -173,6 +175,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully creates a database entry of array data * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testCreateArray() : void { @@ -183,6 +186,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully returns a database entry as model * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testRead() : void { @@ -219,6 +223,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully returns a database entry as array * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testReadArray() : void { @@ -250,6 +255,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully updates a database entry from a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testUpdate() : void { @@ -281,6 +287,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully updates a database entry from an array * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testUpdateArray() : void { @@ -312,6 +319,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The datamapper sucessfully deletes a database entry from a model * @covers phpOMS\DataStorage\Database\DataMapperAbstract + * @group framework */ public function testDelete() : void { diff --git a/tests/DataStorage/Database/DatabasePoolTest.php b/tests/DataStorage/Database/DatabasePoolTest.php index be33a082f..4e5f1153b 100644 --- a/tests/DataStorage/Database/DatabasePoolTest.php +++ b/tests/DataStorage/Database/DatabasePoolTest.php @@ -34,6 +34,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox The pool has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -42,6 +43,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox A database connection can be created by the pool + * @group framework */ public function testCreateConnection() : void { @@ -52,6 +54,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Database connections cannot be overwritten + * @group framework */ public function testInvalidOverwrite() : void { @@ -63,6 +66,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Existing database connections can be added to the pool + * @group framework */ public function testAddConnections() : void { @@ -73,6 +77,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Database connections can be removed from the pool + * @group framework */ public function testRemoveConnections() : void { @@ -84,6 +89,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid database connections cannot be removed + * @group framework */ public function testInvalidRemove() : void { @@ -94,6 +100,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase /** * @testdox The first connection added to the pool is the default connection + * @group framework */ public function testDefaultConnection() : void { diff --git a/tests/DataStorage/Database/DatabaseStatusTest.php b/tests/DataStorage/Database/DatabaseStatusTest.php index 63366a8d1..b3dad0be1 100644 --- a/tests/DataStorage/Database/DatabaseStatusTest.php +++ b/tests/DataStorage/Database/DatabaseStatusTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseStatus; class DatabaseStatusTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class DatabaseStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class DatabaseStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Database/DatabaseTypeTest.php b/tests/DataStorage/Database/DatabaseTypeTest.php index 46bc6f634..fa9466cbf 100644 --- a/tests/DataStorage/Database/DatabaseTypeTest.php +++ b/tests/DataStorage/Database/DatabaseTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseType; class DatabaseTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class DatabaseTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class DatabaseTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Database/Query/BuilderTest.php b/tests/DataStorage/Database/Query/BuilderTest.php index 6c166a81e..8b4756dc9 100644 --- a/tests/DataStorage/Database/Query/BuilderTest.php +++ b/tests/DataStorage/Database/Query/BuilderTest.php @@ -33,6 +33,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql selects form a valid query + * @group framework */ public function testMysqlSelect() : void { @@ -91,6 +92,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql orders form a valid query + * @group framework */ public function testMysqlOrder() : void { @@ -121,6 +123,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql offsets and limits form a valid query + * @group framework */ public function testMysqlOffsetLimit() : void { @@ -135,6 +138,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql groupings form a valid query + * @group framework */ public function testMysqlGroup() : void { @@ -156,6 +160,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql wheres form a valid query + * @group framework */ public function testMysqlWheres() : void { @@ -218,6 +223,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql joins form a valid query + * @group framework */ public function testMysqlJoins() : void { @@ -280,6 +286,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql inserts form a valid query + * @group framework */ public function testMysqlInsert() : void { @@ -307,6 +314,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql deletes form a valid query + * @group framework */ public function testMysqlDelete() : void { @@ -321,6 +329,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql updates form a valid query + * @group framework */ public function testMysqlUpdate() : void { @@ -339,6 +348,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Raw queries get output as defined + * @group framework */ public function testRawInputOutput() : void { @@ -348,6 +358,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Read only queries don't allow drops + * @group framework */ public function testReadOnlyRaw() : void { @@ -359,6 +370,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Read only queries don't allow inserts + * @group framework */ public function testReadOnlyInsert() : void { @@ -370,6 +382,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Read only queries don't allow updates + * @group framework */ public function testReadOnlyUpdate() : void { @@ -381,6 +394,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Read only queries don't allow deletes + * @group framework */ public function testReadOnlyDelete() : void { @@ -392,6 +406,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid select types throw a InvalidArgumentException + * @group framework */ public function testInvalidSelectParameter() : void { @@ -403,6 +418,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid from types throw a InvalidArgumentException + * @group framework */ public function testInvalidFromParameter() : void { @@ -414,6 +430,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid group types throw a InvalidArgumentException + * @group framework */ public function testInvalidGroupByParameter() : void { @@ -425,6 +442,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid where operators throw a InvalidArgumentException + * @group framework */ public function testInvalidWhereOperator() : void { @@ -436,6 +454,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid join types throw a InvalidArgumentException + * @group framework */ public function testInvalidJoinTable() : void { @@ -447,6 +466,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid join operators throw a InvalidArgumentException + * @group framework */ public function testInvalidJoinOperator() : void { @@ -458,6 +478,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid order types throw a InvalidArgumentException + * @group framework */ public function testInvalidOrderType() : void { @@ -469,6 +490,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid order column types throw a InvalidArgumentException + * @group framework */ public function testInvalidOrderColumnType() : void { diff --git a/tests/DataStorage/Database/Query/Grammar/GrammarTest.php b/tests/DataStorage/Database/Query/Grammar/GrammarTest.php index 0b55bb706..bc3f80332 100644 --- a/tests/DataStorage/Database/Query/Grammar/GrammarTest.php +++ b/tests/DataStorage/Database/Query/Grammar/GrammarTest.php @@ -26,6 +26,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -36,6 +37,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar can define a default table prefix and return this value + * @group framework */ public function testPrefixInputOutput() : void { diff --git a/tests/DataStorage/Database/Query/Grammar/MysqlGrammarTest.php b/tests/DataStorage/Database/Query/Grammar/MysqlGrammarTest.php index 84cfc677b..abb87ee7b 100644 --- a/tests/DataStorage/Database/Query/Grammar/MysqlGrammarTest.php +++ b/tests/DataStorage/Database/Query/Grammar/MysqlGrammarTest.php @@ -27,6 +27,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar has the expected default values after initialization + * @group framework */ public function testDefault() : void { diff --git a/tests/DataStorage/Database/Query/Grammar/SQLiteGrammarTest.php b/tests/DataStorage/Database/Query/Grammar/SQLiteGrammarTest.php index 2860dfcb9..c70c714d8 100644 --- a/tests/DataStorage/Database/Query/Grammar/SQLiteGrammarTest.php +++ b/tests/DataStorage/Database/Query/Grammar/SQLiteGrammarTest.php @@ -26,6 +26,7 @@ class SQLiteGrammarTest extends \PHPUnit\Framework\TestCase { /** * @testdox The grammar has the expected default values after initialization + * @group framework */ public function testDefault() : void { diff --git a/tests/DataStorage/Database/Query/JoinTypeTest.php b/tests/DataStorage/Database/Query/JoinTypeTest.php index a5c9e28cb..6a6d428d6 100644 --- a/tests/DataStorage/Database/Query/JoinTypeTest.php +++ b/tests/DataStorage/Database/Query/JoinTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Query\JoinType; class JoinTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class JoinTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class JoinTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Database/Query/QueryTypeTest.php b/tests/DataStorage/Database/Query/QueryTypeTest.php index 8c9399a2f..11873dfd1 100644 --- a/tests/DataStorage/Database/Query/QueryTypeTest.php +++ b/tests/DataStorage/Database/Query/QueryTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Query\QueryType; class QueryTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Database/RelationTypeTest.php b/tests/DataStorage/Database/RelationTypeTest.php index 22c7c0421..5c9fd6f7f 100644 --- a/tests/DataStorage/Database/RelationTypeTest.php +++ b/tests/DataStorage/Database/RelationTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\RelationType; class RelationTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class RelationTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class RelationTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Database/Schema/BuilderTest.php b/tests/DataStorage/Database/Schema/BuilderTest.php index faa89963a..9a9997f3c 100644 --- a/tests/DataStorage/Database/Schema/BuilderTest.php +++ b/tests/DataStorage/Database/Schema/BuilderTest.php @@ -33,6 +33,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql drops form a valid query + * @group framework */ public function testMysqlDrop() : void { @@ -43,6 +44,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql show tables form a valid query + * @group framework */ public function testMysqlShowTables() : void { @@ -53,6 +55,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql show fields form a valid query + * @group framework */ public function testMysqlShowFields() : void { @@ -63,6 +66,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase /** * @testdox Mysql create tables form a valid query + * @group framework */ public function testMysqlCreateTable() : void { diff --git a/tests/DataStorage/Database/Schema/Grammar/GrammarTest.php b/tests/DataStorage/Database/Schema/Grammar/GrammarTest.php index 8b8f8f0c5..c0c258aee 100644 --- a/tests/DataStorage/Database/Schema/Grammar/GrammarTest.php +++ b/tests/DataStorage/Database/Schema/Grammar/GrammarTest.php @@ -25,6 +25,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase { /** * @testdox The grammar has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -35,6 +36,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar can define a default table prefix and return this value + * @group framework */ public function testPrefixInputOutput() : void { diff --git a/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php b/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php index 67aeb5ced..aa5e7a923 100644 --- a/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php +++ b/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php @@ -37,6 +37,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar has the expected default values after initialization * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar + * @group framework */ public function testDefault() : void { @@ -47,6 +48,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The the grammar correctly creates and returns a database table * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar + * @group framework */ public function testSchemaInputOutput() : void { @@ -74,6 +76,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase /** * @testdox The grammar correctly deletes a table * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar + * @group framework */ public function testDelete() : void { diff --git a/tests/DataStorage/Database/Schema/Grammar/SQLiteGrammarTest.php b/tests/DataStorage/Database/Schema/Grammar/SQLiteGrammarTest.php index 909a004f4..5af087486 100644 --- a/tests/DataStorage/Database/Schema/Grammar/SQLiteGrammarTest.php +++ b/tests/DataStorage/Database/Schema/Grammar/SQLiteGrammarTest.php @@ -25,6 +25,7 @@ class SQLiteGrammarTest extends \PHPUnit\Framework\TestCase { /** * @testdox The grammar has the expected default values after initialization + * @group framework */ public function testDefault() : void { diff --git a/tests/DataStorage/Database/Schema/QueryTypeTest.php b/tests/DataStorage/Database/Schema/QueryTypeTest.php index 70db0e3a7..50d5a6178 100644 --- a/tests/DataStorage/Database/Schema/QueryTypeTest.php +++ b/tests/DataStorage/Database/Schema/QueryTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Schema\QueryType; class QueryTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/DataStorage/Session/HttpSessionTest.php b/tests/DataStorage/Session/HttpSessionTest.php index 2c4817835..9080587e3 100644 --- a/tests/DataStorage/Session/HttpSessionTest.php +++ b/tests/DataStorage/Session/HttpSessionTest.php @@ -25,6 +25,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase { /** * @testdox The session has the expected default values after initialization + * @group framework */ public function testDefault() : void { @@ -35,6 +36,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox Session data can be set and returned + * @group framework */ public function testInputOutput() : void { @@ -45,6 +47,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox Session data cannot be overwritten + * @group framework */ public function testInvalidOverwrite() : void { @@ -56,6 +59,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox Session data can be forced to overwrite + * @group framework */ public function testOverwrite() : void { @@ -67,6 +71,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox Session data can be removed + * @group framework */ public function testRemove() : void { @@ -77,6 +82,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing session data cannot be removed + * @group framework */ public function testInvalidRemove() : void { @@ -89,6 +95,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox A session id can be set and returned + * @group framework */ public function testSessionIdInputOutput() : void { @@ -99,6 +106,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox A session can be locked + * @group framework */ public function testLockInputOutput() : void { @@ -110,6 +118,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox A locked session cannot add or change data + * @group framework */ public function testLockInvalidSet() : void { @@ -121,6 +130,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase /** * @testdox A locked session cannot remove data + * @group framework */ public function testLockInvalidRemove() : void { diff --git a/tests/Dispatcher/DispatcherTest.php b/tests/Dispatcher/DispatcherTest.php index 02d365e8d..9c0a5e4dc 100644 --- a/tests/Dispatcher/DispatcherTest.php +++ b/tests/Dispatcher/DispatcherTest.php @@ -43,6 +43,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The dispatcher has the expected member variables * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testAttributes() : void { @@ -52,6 +53,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The disptacher can dispatch a function/closure * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testClosure() : void { @@ -79,6 +81,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The disptacher can dispatch a method as string representation of a controller * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testPathMethod() : void { @@ -98,6 +101,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The disptacher can dispatch a method as array representation of a controller * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testPathMethodInArray() : void { @@ -125,6 +129,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The disptacher can dispatch a static method as string representation * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testPathStatic() : void { @@ -144,6 +149,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox The disptacher can dispatch multiple destinations after another * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testArray() : void { @@ -167,6 +173,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid destination type throws UnexpectedValueException * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testInvalidDestination() : void { @@ -178,6 +185,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid controller path thorws a PathException * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testInvalidControllerPath() : void { @@ -189,6 +197,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid function path thorws a Exception * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testInvalidControllerFunction() : void { @@ -200,6 +209,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase /** * @testdox A malformed dispatch path thorws UnexpectedValueException * @covers phpOMS\Dispatcher\Dispatcher + * @group framework */ public function testInvalidControllerString() : void { diff --git a/tests/Event/EventManagerTest.php b/tests/Event/EventManagerTest.php index 95406c539..005762d59 100644 --- a/tests/Event/EventManagerTest.php +++ b/tests/Event/EventManagerTest.php @@ -35,6 +35,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The event manager has the expected member variables * @covers phpOMS\Event\EventManager + * @group framework */ public function testAttributes() : void { @@ -45,6 +46,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The event manager has the expected default values after initialization * @covers phpOMS\Event\EventManager + * @group framework */ public function testDefault() : void { @@ -54,6 +56,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox New events can be added * @covers phpOMS\Event\EventManager + * @group framework */ public function testAdd() : void { @@ -64,6 +67,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiple callbacks can be added to an event * @covers phpOMS\Event\EventManager + * @group framework */ public function testAddMultiple() : void { @@ -75,6 +79,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event gets executed if all conditions and sub conditions are met * @covers phpOMS\Event\EventManager + * @group framework */ public function testDispatchAfterAllConditions() : void { @@ -89,6 +94,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event doesn't get executed if not all conditions and sub conditions are met * @covers phpOMS\Event\EventManager + * @group framework */ public function testDispatchAfterSomeConditionsInvalid() : void { @@ -102,6 +108,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing events cannot be executed/triggered * @covers phpOMS\Event\EventManager + * @group framework */ public function testInvalidEventTrigger() : void { @@ -111,6 +118,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event can be defined to reset after all conditions and subconditions are met. Then all conditions and sub conditions must be met again before it gets triggered again. * @covers phpOMS\Event\EventManager + * @group framework */ public function testReset() : void { @@ -126,6 +134,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event can be defined to not reset after all conditions and subconditions are met. Then an event can be triggered any time. * @covers phpOMS\Event\EventManager + * @group framework */ public function testNoeReset() : void { @@ -141,6 +150,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event can be manually removed/detatched * @covers phpOMS\Event\EventManager + * @group framework */ public function testDetach() : void { @@ -157,6 +167,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing events cannot be manually removed/detatched * @covers phpOMS\Event\EventManager + * @group framework */ public function testInvalidDetach() : void { @@ -171,6 +182,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox An event can be defined to automatically remove itself after all conditions and subconditions are met and it is executed * @covers phpOMS\Event\EventManager + * @group framework */ public function testRemove() : void { @@ -185,6 +197,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Events can be imported from a file * @covers phpOMS\Event\EventManager + * @group framework */ public function testImportEvents() : void { @@ -198,6 +211,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid event files cannot be imported and return a failure * @covers phpOMS\Event\EventManager + * @group framework */ public function testInvalidImportEvents() : void { diff --git a/tests/Localization/Defaults/CityMapperTest.php b/tests/Localization/Defaults/CityMapperTest.php index fb3fcdc0f..9d626f3be 100644 --- a/tests/Localization/Defaults/CityMapperTest.php +++ b/tests/Localization/Defaults/CityMapperTest.php @@ -40,6 +40,7 @@ class CityMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox The model can be read from the database + * @group framework */ public function testR() : void { diff --git a/tests/Localization/Defaults/CityTest.php b/tests/Localization/Defaults/CityTest.php index 831429649..9a0db8b01 100644 --- a/tests/Localization/Defaults/CityTest.php +++ b/tests/Localization/Defaults/CityTest.php @@ -27,6 +27,7 @@ class CityTest extends \PHPUnit\Framework\TestCase { /** * @testdox The model has the expected member variables and default values + * @group framework */ public function testDefaults() : void { diff --git a/tests/Localization/Defaults/CountryMapperTest.php b/tests/Localization/Defaults/CountryMapperTest.php index a4ac41ee6..4b8775c91 100644 --- a/tests/Localization/Defaults/CountryMapperTest.php +++ b/tests/Localization/Defaults/CountryMapperTest.php @@ -40,6 +40,7 @@ class CountryMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox The model can be read from the database + * @group framework */ public function testR() : void { diff --git a/tests/Localization/Defaults/CountryTest.php b/tests/Localization/Defaults/CountryTest.php index f58de98cb..583fdce75 100644 --- a/tests/Localization/Defaults/CountryTest.php +++ b/tests/Localization/Defaults/CountryTest.php @@ -27,6 +27,7 @@ class CountryTest extends \PHPUnit\Framework\TestCase { /** * @testdox The model has the expected member variables and default values + * @group framework */ public function testDefaults() : void { diff --git a/tests/Localization/Defaults/CurrencyMapperTest.php b/tests/Localization/Defaults/CurrencyMapperTest.php index 39a55647a..123b3af1e 100644 --- a/tests/Localization/Defaults/CurrencyMapperTest.php +++ b/tests/Localization/Defaults/CurrencyMapperTest.php @@ -40,6 +40,7 @@ class CurrencyMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox The model can be read from the database + * @group framework */ public function testR() : void { diff --git a/tests/Localization/Defaults/CurrencyTest.php b/tests/Localization/Defaults/CurrencyTest.php index 0342f6b5b..2b829e977 100644 --- a/tests/Localization/Defaults/CurrencyTest.php +++ b/tests/Localization/Defaults/CurrencyTest.php @@ -27,6 +27,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase { /** * @testdox The model has the expected member variables and default values + * @group framework */ public function testDefaults() : void { diff --git a/tests/Localization/Defaults/IbanMapperTest.php b/tests/Localization/Defaults/IbanMapperTest.php index 8d3bda43b..dc85f5cae 100644 --- a/tests/Localization/Defaults/IbanMapperTest.php +++ b/tests/Localization/Defaults/IbanMapperTest.php @@ -40,6 +40,7 @@ class IbanMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox The model can be read from the database + * @group framework */ public function testR() : void { diff --git a/tests/Localization/Defaults/IbanTest.php b/tests/Localization/Defaults/IbanTest.php index 58b32d9f5..69bf89a3d 100644 --- a/tests/Localization/Defaults/IbanTest.php +++ b/tests/Localization/Defaults/IbanTest.php @@ -27,6 +27,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase { /** * @testdox The model has the expected member variables and default values + * @group framework */ public function testDefaults() : void { diff --git a/tests/Localization/Defaults/LanguageMapperTest.php b/tests/Localization/Defaults/LanguageMapperTest.php index 3fb6a9433..d39cda03d 100644 --- a/tests/Localization/Defaults/LanguageMapperTest.php +++ b/tests/Localization/Defaults/LanguageMapperTest.php @@ -40,6 +40,7 @@ class LanguageMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox The model can be read from the database + * @group framework */ public function testR() : void { diff --git a/tests/Localization/Defaults/LanguageTest.php b/tests/Localization/Defaults/LanguageTest.php index 6eafe64d4..4ce94bc27 100644 --- a/tests/Localization/Defaults/LanguageTest.php +++ b/tests/Localization/Defaults/LanguageTest.php @@ -27,6 +27,7 @@ class LanguageTest extends \PHPUnit\Framework\TestCase { /** * @testdox The model has the expected member variables and default values + * @group framework */ public function testDefaults() : void { diff --git a/tests/Localization/ISO3166CharEnumTest.php b/tests/Localization/ISO3166CharEnumTest.php index 09b5ee898..6366eedcc 100644 --- a/tests/Localization/ISO3166CharEnumTest.php +++ b/tests/Localization/ISO3166CharEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO3166CharEnum; class ISO3166CharEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO3166NameEnumTest.php b/tests/Localization/ISO3166NameEnumTest.php index 5ab8a29f8..aab269c9c 100644 --- a/tests/Localization/ISO3166NameEnumTest.php +++ b/tests/Localization/ISO3166NameEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO3166NameEnum; class ISO3166NameEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO3166NumEnumTest.php b/tests/Localization/ISO3166NumEnumTest.php index 9ccb30221..aad0cc6eb 100644 --- a/tests/Localization/ISO3166NumEnumTest.php +++ b/tests/Localization/ISO3166NumEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO3166NumEnum; class ISO3166NumEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO3166TwoEnumTest.php b/tests/Localization/ISO3166TwoEnumTest.php index b5eabd8fc..a42c54cd8 100644 --- a/tests/Localization/ISO3166TwoEnumTest.php +++ b/tests/Localization/ISO3166TwoEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO3166TwoEnum; class ISO3166TwoEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217CharEnumTest.php b/tests/Localization/ISO4217CharEnumTest.php index e0188ca99..0f23a2bb5 100644 --- a/tests/Localization/ISO4217CharEnumTest.php +++ b/tests/Localization/ISO4217CharEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217CharEnum; class ISO4217CharEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217DecimalEnumTest.php b/tests/Localization/ISO4217DecimalEnumTest.php index 02f08609c..6a525c7aa 100644 --- a/tests/Localization/ISO4217DecimalEnumTest.php +++ b/tests/Localization/ISO4217DecimalEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217DecimalEnum; class ISO4217DecimalEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217EnumTest.php b/tests/Localization/ISO4217EnumTest.php index 608819a15..d9bd66fea 100644 --- a/tests/Localization/ISO4217EnumTest.php +++ b/tests/Localization/ISO4217EnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217Enum; class ISO4217EnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217NumEnumTest.php b/tests/Localization/ISO4217NumEnumTest.php index f86dd6af2..6131bbbb3 100644 --- a/tests/Localization/ISO4217NumEnumTest.php +++ b/tests/Localization/ISO4217NumEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217NumEnum; class ISO4217NumEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217SubUnitEnumTest.php b/tests/Localization/ISO4217SubUnitEnumTest.php index 8af9b5ddb..7ad9d14ce 100644 --- a/tests/Localization/ISO4217SubUnitEnumTest.php +++ b/tests/Localization/ISO4217SubUnitEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217SubUnitEnum; class ISO4217SubUnitEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO4217SymbolEnumTest.php b/tests/Localization/ISO4217SymbolEnumTest.php index 9fdf9ba17..21d60ff33 100644 --- a/tests/Localization/ISO4217SymbolEnumTest.php +++ b/tests/Localization/ISO4217SymbolEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO4217SymbolEnum; class ISO4217SymbolEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO639EnumTest.php b/tests/Localization/ISO639EnumTest.php index bda79ee6e..a3421197f 100644 --- a/tests/Localization/ISO639EnumTest.php +++ b/tests/Localization/ISO639EnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO639Enum; class ISO639EnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO639x1EnumTest.php b/tests/Localization/ISO639x1EnumTest.php index ea6214264..fc9cb5953 100644 --- a/tests/Localization/ISO639x1EnumTest.php +++ b/tests/Localization/ISO639x1EnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO639x1Enum; class ISO639x1EnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO639x2EnumTest.php b/tests/Localization/ISO639x2EnumTest.php index 83e4a19db..bc4d69230 100644 --- a/tests/Localization/ISO639x2EnumTest.php +++ b/tests/Localization/ISO639x2EnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO639x2Enum; class ISO639x2EnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/ISO8601EnumArrayTest.php b/tests/Localization/ISO8601EnumArrayTest.php index faa40c72d..868a57ddc 100644 --- a/tests/Localization/ISO8601EnumArrayTest.php +++ b/tests/Localization/ISO8601EnumArrayTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\ISO8601EnumArray; class ISO8601EnumArrayTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void diff --git a/tests/Localization/L11nManagerTest.php b/tests/Localization/L11nManagerTest.php index 8db3003e0..bfd1ae200 100644 --- a/tests/Localization/L11nManagerTest.php +++ b/tests/Localization/L11nManagerTest.php @@ -35,6 +35,7 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The localization manager has the expected member variables * @covers phpOMS\Localization\L11nManager + * @group framework */ public function testAttributes() : void { @@ -44,6 +45,7 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The localization manager has the expected default values after initialization * @covers phpOMS\Localization\L11nManager + * @group framework */ public function testDefault() : void { @@ -57,6 +59,7 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Loading language for an invalid module throws Exception * @covers phpOMS\Localization\L11nManager + * @group framework */ public function testInvalidModule() : void { @@ -76,6 +79,7 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Language data can be loaded and output as plain text or html * @covers phpOMS\Localization\L11nManager + * @group framework */ public function testLanguageInputOutput() : void { @@ -106,6 +110,7 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Language data can be loaded from a file * @covers phpOMS\Localization\L11nManager + * @group framework */ public function testLanguageFile() : void { diff --git a/tests/Localization/LocalizationTest.php b/tests/Localization/LocalizationTest.php index ecb35f2d2..dc0d81411 100644 --- a/tests/Localization/LocalizationTest.php +++ b/tests/Localization/LocalizationTest.php @@ -42,6 +42,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The localization has the expected member variables * @covers phpOMS\Localization\Localization + * @group framework */ public function testAttributes() : void { @@ -57,6 +58,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The localization has the expected default values after initialization * @covers phpOMS\Localization\Localization + * @group framework */ public function testDefault() : void { @@ -78,6 +80,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid language code throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidLanguage() : void { @@ -89,6 +92,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid country code throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidCountry() : void { @@ -100,6 +104,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid timezone code throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidTimezone() : void { @@ -111,6 +116,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid currency code throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidCurrency() : void { @@ -122,6 +128,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid angle throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidAngle() : void { @@ -133,6 +140,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a invalid temperature throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidTemperature() : void { @@ -144,6 +152,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The country can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testCountryInputOutput() : void { @@ -154,6 +163,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The timezone can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testTimezoneInputOutput() : void { @@ -164,6 +174,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The language can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testLanguageInputOutput() : void { @@ -174,6 +185,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The currency can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testCurrencyInputOutput() : void { @@ -184,6 +196,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The datetime can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testDatetimeInputOutput() : void { @@ -194,6 +207,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The decimal can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testDecimalInputOutput() : void { @@ -204,6 +218,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The thousands can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testThousandsInputOutput() : void { @@ -214,6 +229,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The angle can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testAngleInputOutput() : void { @@ -224,6 +240,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The temperature can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testTemperatureInputOutput() : void { @@ -234,6 +251,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The weight can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testWeightInputOutput() : void { @@ -244,6 +262,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The length can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testLengthInputOutput() : void { @@ -254,6 +273,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The area can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testAreaInputOutput() : void { @@ -264,6 +284,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The volume can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testVolumeInputOutput() : void { @@ -274,6 +295,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox The speed can be set and returned * @covers phpOMS\Localization\Localization + * @group framework */ public function testSpeedInputOutput() : void { @@ -284,6 +306,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Localization data can be loaded from a locale file * @covers phpOMS\Localization\Localization + * @group framework */ public function testLocalizationLoading() : void { @@ -294,6 +317,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox If no locale file for a specified country exists or a wild card country is used the first match of a locale file based on the defined language is loaded * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidCountryLocalizationLoading() : void { @@ -304,6 +328,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox By default the english locale file will be loaded if no other locale file can be found * @covers phpOMS\Localization\Localization + * @group framework */ public function testMissingLocalizationLoading() : void { @@ -314,6 +339,7 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase /** * @testdox Loading localization data from a file with invalid language throws InvalidEnumValue * @covers phpOMS\Localization\Localization + * @group framework */ public function testInvalidLocalizationLoading() : void { diff --git a/tests/Localization/MoneyTest.php b/tests/Localization/MoneyTest.php index bd6773f15..f3fd5e014 100644 --- a/tests/Localization/MoneyTest.php +++ b/tests/Localization/MoneyTest.php @@ -28,6 +28,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase { /** * @testdox The datatype has the expected member variables and default values + * @group framework */ public function testDefaultMemberVariables() : void { @@ -43,6 +44,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype returns the correct default string representation (#,###.##) + * @group framework */ public function testMoneyDefaultStringRepresentation() : void { @@ -52,6 +54,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype returns up to 4 decimal places if requested (#,###.####) + * @group framework */ public function testMoneyDecimalPlaces() : void { @@ -62,6 +65,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype returns the correct integer representation of a string with up to 4 decimal places also considering differences in decimal and thousands characters if requested for different localizations + * @group framework */ public function testMoneyStringToIntConversion() : void { @@ -72,6 +76,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype allows to modify the value by overwriting it with new string characters or integers correctly + * @group framework */ public function testCorrectValueChange() : void { @@ -82,6 +87,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype can print out money with different thousands, decimals and currency symbols as per definition by the user + * @group framework */ public function testMoneyLocalization() : void { @@ -91,6 +97,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The string character input is correctly serialized to the numeric representation + * @group framework */ public function testMoneySerialization() : void { @@ -100,6 +107,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The string character input is correctly unserialized from a numeric representation + * @group framework */ public function testMoneyUnserialization() : void { @@ -110,6 +118,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype correctly adds and subtracts the different money representations in string, numeric or Money type + * @group framework */ public function testMoneyAddSub() : void { @@ -129,6 +138,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype correctly multiplies and divides the money with numerics + * @group framework */ public function testMoneyMultDiv() : void { @@ -139,6 +149,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype correctly handles the absolute value + * @group framework */ public function testMoneyAbsoluteValue() : void { @@ -148,6 +159,7 @@ class MoneyTest extends \PHPUnit\Framework\TestCase /** * @testdox The datatype correctly handles the power operator + * @group framework */ public function testMoneyPower() : void { diff --git a/tests/Localization/PhoneEnumTest.php b/tests/Localization/PhoneEnumTest.php index 4526a86fd..dcd61604d 100644 --- a/tests/Localization/PhoneEnumTest.php +++ b/tests/Localization/PhoneEnumTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\PhoneEnum; class PhoneEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Localization/TimeZoneEnumArrayTest.php b/tests/Localization/TimeZoneEnumArrayTest.php index cc9d42236..067b9ab52 100644 --- a/tests/Localization/TimeZoneEnumArrayTest.php +++ b/tests/Localization/TimeZoneEnumArrayTest.php @@ -24,6 +24,7 @@ use phpOMS\Localization\TimeZoneEnumArray; class TimeZoneEnumArrayTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Log/FileLoggerTest.php b/tests/Log/FileLoggerTest.php index ac5be6e98..400bb3d58 100644 --- a/tests/Log/FileLoggerTest.php +++ b/tests/Log/FileLoggerTest.php @@ -55,6 +55,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox The logger has the expected member variables * @covers phpOMS\Log\FileLogger + * @group framework */ public function testAttributes() : void { @@ -65,6 +66,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox The logger has the expected default values after initialization * @covers phpOMS\Log\FileLogger + * @group framework */ public function testDefault() : void { @@ -77,6 +79,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox A log file for the output can be specified for the file logger * @covers phpOMS\Log\FileLogger + * @group framework */ public function testNamedLogFile() : void { @@ -97,6 +100,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox If no log file name is specified a log file per date is created * @covers phpOMS\Log\FileLogger + * @group framework */ public function testUnnamedLogFile() : void { @@ -109,6 +113,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox If no logs are performed no log file will be created * @covers phpOMS\Log\FileLogger + * @group framework */ public function testNoFileIfNoLog() : void { @@ -120,6 +125,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox Logs with different levels get correctly stored in the log file * @covers phpOMS\Log\FileLogger + * @group framework */ public function testLogInputOutput() : void { @@ -209,6 +215,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox Log files can be analyzed for the highest perpetrator (IP address) * @covers phpOMS\Log\FileLogger + * @group framework */ public function testPerpetrator() : void { @@ -224,6 +231,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox Logs can be read from the log file * @covers phpOMS\Log\FileLogger + * @group framework */ public function testReadLogs() : void { @@ -261,6 +269,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid log reads return empty log data * @covers phpOMS\Log\FileLogger + * @group framework */ public function testInvalidReadLogs() : void { @@ -278,6 +287,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox A line can be read from a log file * @covers phpOMS\Log\FileLogger + * @group framework */ public function testReadLine() : void { @@ -293,6 +303,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing lines return on read empty log data * @covers phpOMS\Log\FileLogger + * @group framework */ public function testInvalidReadLine() : void { @@ -308,6 +319,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox A verbose file logger automatically outputs log data * @covers phpOMS\Log\FileLogger + * @group framework */ public function testVerboseLogger() : void { @@ -324,6 +336,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox A verbose console log outputs log data * @covers phpOMS\Log\FileLogger + * @group framework */ public function testVerboseLog() : void { @@ -340,6 +353,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid log type throws a InvalidEnumValue * @covers phpOMS\Log\FileLogger + * @group framework */ public function testLogException() : void { @@ -356,6 +370,7 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase /** * @testdox The logger can perform timings for internal duration logging * @covers phpOMS\Log\FileLogger + * @group framework */ public function testTiming() : void { diff --git a/tests/Log/LogLevelTest.php b/tests/Log/LogLevelTest.php index e87e335fb..a32d4f858 100644 --- a/tests/Log/LogLevelTest.php +++ b/tests/Log/LogLevelTest.php @@ -24,6 +24,7 @@ use phpOMS\Log\LogLevel; class LogLevelTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class LogLevelTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class LogLevelTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Math/Functions/FibunacciTest.php b/tests/Math/Functions/FibunacciTest.php index 763ccadb2..c4dca188b 100644 --- a/tests/Math/Functions/FibunacciTest.php +++ b/tests/Math/Functions/FibunacciTest.php @@ -17,10 +17,17 @@ namespace phpOMS\tests\Math\Functions; use phpOMS\Math\Functions\Fibunacci; /** + * @testdox phpOMS\tests\Math\Function\FibunacciTest: Fibunacci functions + * * @internal */ class FibunacciTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox A number can be checked if it is a fibunacci number + * @covers phpOMS\Math\Function\Fibunacci + * @group framework + */ public function testFibunacci() : void { self::assertTrue(Fibunacci::isFibunacci(13)); @@ -30,18 +37,33 @@ class FibunacciTest extends \PHPUnit\Framework\TestCase self::assertFalse(Fibunacci::isFibunacci(87)); } + /** + * @testdox A fibunacci number can be returned by index + * @covers phpOMS\Math\Function\Fibunacci + * @group framework + */ public function testFibunacciByKey() : void { self::assertEquals(1, Fibunacci::fib(1)); } - public function testIsFibunacci() : void + /** + * @testdox The binet formula returns fibunacci numbers + * @covers phpOMS\Math\Function\Fibunacci + * @group framework + */ + public function testBinet() : void { self::assertTrue(Fibunacci::isFibunacci(Fibunacci::binet(3))); self::assertTrue(Fibunacci::isFibunacci(Fibunacci::binet(6))); } - public function testBinet() : void + /** + * @testdox The binet formula and the fibunacci formula return the same results + * @covers phpOMS\Math\Function\Fibunacci + * @group framework + */ + public function testBinetFib() : void { self::assertEquals(Fibunacci::binet(6), Fibunacci::fib(6)); self::assertEquals(Fibunacci::binet(8), Fibunacci::fib(8)); diff --git a/tests/Math/Functions/FunctionsTest.php b/tests/Math/Functions/FunctionsTest.php index 3f97afbd3..43d6eb220 100644 --- a/tests/Math/Functions/FunctionsTest.php +++ b/tests/Math/Functions/FunctionsTest.php @@ -17,16 +17,28 @@ namespace phpOMS\tests\Math\Functions; use phpOMS\Math\Functions\Functions; /** + * @testdox phpOMS\tests\Math\Function\FunctionsTest: Various math functions + * * @internal */ class FunctionsTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The factorial of a number can be calculated + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testFactorial() : void { self::assertEquals(120, Functions::fact(5)); self::assertEquals(39916800, Functions::fact(11)); } + /** + * @testdox The binomial coefficient can be calculated + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testBinomialCoefficient() : void { self::assertEquals(21, Functions::binomialCoefficient(7, 2)); @@ -34,6 +46,11 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase self::assertEquals(13983816, Functions::binomialCoefficient(49, 6)); } + /** + * @testdox The ackerman function can be calculated + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testAckermann() : void { self::assertEquals(5, Functions::ackermann(2, 1)); @@ -42,6 +59,11 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase self::assertEquals(13, Functions::ackermann(4, 0)); } + /** + * @testdox The multiplicative inverse module can be calculated + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testMultiplicativeInverseModulo() : void { self::assertEquals(4, Functions::invMod(3, -11)); @@ -49,6 +71,11 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase self::assertEquals(5, Functions::invMod(-10, 17)); } + /** + * @testdox A number can be checked if it is odd + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testOdd() : void { self::assertTrue(Functions::isOdd(3)); @@ -57,6 +84,11 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase self::assertFalse(Functions::isOdd(-4)); } + /** + * @testdox A number can be checked if it is even + * @covers phpOMS\Math\Function\Functions + * @group framework + */ public function testEven() : void { self::assertTrue(Functions::isEven(4)); @@ -65,6 +97,11 @@ class FunctionsTest extends \PHPUnit\Framework\TestCase self::assertFalse(Functions::isEven(-3)); } + /** + * @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 + * @group framework + */ public function testCircularPosition() : void { self::assertEquals(0, Functions::getRelativeDegree(7, 12, 7)); diff --git a/tests/Math/Functions/GammaTest.php b/tests/Math/Functions/GammaTest.php index 29c366351..0345ce97b 100644 --- a/tests/Math/Functions/GammaTest.php +++ b/tests/Math/Functions/GammaTest.php @@ -18,15 +18,27 @@ use phpOMS\Math\Functions\Functions; use phpOMS\Math\Functions\Gamma; /** + * @testdox phpOMS\tests\Math\Function\GammaTest: Gamma function + * * @internal */ class GammaTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The gamma function can be calculated for integers + * @covers phpOMS\Math\Function\Gamma + * @group framework + */ public function testFactorial() : void { self::assertEquals(Functions::fact(4), Gamma::getGammaInteger(5)); } + /** + * @testdox The gamma function can be approximated with the spouge formula + * @covers phpOMS\Math\Function\Gamma + * @group framework + */ public function testApproximationSpouge() : void { $spouge = [ @@ -42,6 +54,11 @@ class GammaTest extends \PHPUnit\Framework\TestCase self::assertTrue(true); } + /** + * @testdox The gamma function can be approximated with the stirling formula + * @covers phpOMS\Math\Function\Gamma + * @group framework + */ public function testApproximationStirling() : void { $stirling = [ @@ -57,6 +74,11 @@ class GammaTest extends \PHPUnit\Framework\TestCase self::assertTrue(true); } + /** + * @testdox The gamma function can be approximated with the lanzos formula + * @covers phpOMS\Math\Function\Gamma + * @group framework + */ public function testApproximationLanzos() : void { $gsl = [ diff --git a/tests/Math/Geometry/ConvexHull/MonotoneChainTest.php b/tests/Math/Geometry/ConvexHull/MonotoneChainTest.php index 3eb3fa21e..94626f39b 100644 --- a/tests/Math/Geometry/ConvexHull/MonotoneChainTest.php +++ b/tests/Math/Geometry/ConvexHull/MonotoneChainTest.php @@ -17,10 +17,17 @@ namespace phpOMS\tests\Math\Geometry\ConvexHull; use phpOMS\Math\Geometry\ConvexHull\MonotoneChain; /** + * @testdox phpOMS\tests\Math\Geometry\ConvexHull\MonotoneChainTest: Monotone chain + * * @internal */ class MonotoneChainTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox A convedx hull can be formed from multiple points on a plane + * @covers phpOMS\Math\Geometry\ConvexHull\MonotoneChain + * @group framework + */ public function testMonotoneChain() : void { self::assertEquals([['x' => 9, 'y' => 0]], MonotoneChain::createConvexHull([['x' => 9, 'y' => 0]])); diff --git a/tests/Math/Geometry/Shape/D2/CircleTest.php b/tests/Math/Geometry/Shape/D2/CircleTest.php index 813db9de9..fc516efc8 100644 --- a/tests/Math/Geometry/Shape/D2/CircleTest.php +++ b/tests/Math/Geometry/Shape/D2/CircleTest.php @@ -17,25 +17,47 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Circle; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\CircleTest: Circle shape + * * @internal */ class CircleTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Circle + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(12.57, Circle::getSurface(2), 0.01); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Circle + * @group framework + */ public function testPerimeter() : void { self::assertEqualsWithDelta(12.57, Circle::getPerimeter(2), 0.01); } + /** + * @testdox The radius can be caluclated with the surface + * @covers phpOMS\Math\Geometry\Shape\D2\Circle + * @group framework + */ public function testRadiusBySurface() : void { self::assertEqualsWithDelta(2.0, Circle::getRadiusBySurface(Circle::getSurface(2)), 0.001); } + /** + * @testdox The radius can be caluclated with the perimeter + * @covers phpOMS\Math\Geometry\Shape\D2\Circle + * @group framework + */ public function testRadiusByPerimeter() : void { self::assertEqualsWithDelta(2.0, Circle::getRadiusByPerimeter(Circle::getPerimeter(2)), 0.001); diff --git a/tests/Math/Geometry/Shape/D2/EllipseTest.php b/tests/Math/Geometry/Shape/D2/EllipseTest.php index 9ca4408f3..00046c940 100644 --- a/tests/Math/Geometry/Shape/D2/EllipseTest.php +++ b/tests/Math/Geometry/Shape/D2/EllipseTest.php @@ -17,15 +17,27 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Ellipse; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\EllipseTest: Ellipse shape + * * @internal */ class EllipseTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Ellipse + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(6.28, Ellipse::getSurface(2, 1), 0.01); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Ellipse + * @group framework + */ public function testPerimeter() : void { self::assertEqualsWithDelta(9.69, Ellipse::getPerimeter(2, 1), 0.01); diff --git a/tests/Math/Geometry/Shape/D2/PolygonTest.php b/tests/Math/Geometry/Shape/D2/PolygonTest.php index b4688b201..02fc600b0 100644 --- a/tests/Math/Geometry/Shape/D2/PolygonTest.php +++ b/tests/Math/Geometry/Shape/D2/PolygonTest.php @@ -17,10 +17,17 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Polygon; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\PolygonTest: Polygon shape + * * @internal */ class PolygonTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The location of a point can be checked relative to a polygon + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testPoint() : void { $polyArray = [ @@ -42,6 +49,11 @@ class PolygonTest extends \PHPUnit\Framework\TestCase self::assertEquals(-1, Polygon::isPointInPolygon(['x' => 1.8, 'y' => 1.1], $polyArray)); } + /** + * @testdox The interior angle can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testInteriorAngle() : void { $polygon = new Polygon([[1, 2], [2, 3], [3, 4]]); @@ -63,12 +75,22 @@ class PolygonTest extends \PHPUnit\Framework\TestCase self::assertEquals(1080, $polygon->getInteriorAngleSum()); } + /** + * @testdox The exterior angle can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testExteriorAngle() : void { $polygon = new Polygon([[1, 2], [2, 3], [3, 4]]); self::assertEquals(360, $polygon->getExteriorAngleSum()); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testPerimeter() : void { $polygon = new Polygon([ @@ -84,6 +106,11 @@ class PolygonTest extends \PHPUnit\Framework\TestCase self::assertEqualsWithDelta(9.6568, $polygon->getPerimeter(), 0.1); } + /** + * @testdox The area can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testArea() : void { $polygon = new Polygon([ @@ -99,6 +126,11 @@ class PolygonTest extends \PHPUnit\Framework\TestCase self::assertEquals(7, $polygon->getSurface()); } + /** + * @testdox The barycenter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testBarycenter() : void { $polygon = new Polygon([ @@ -114,11 +146,21 @@ class PolygonTest extends \PHPUnit\Framework\TestCase self::assertEqualsWithDelta(['x' => 3.5, 'y' => 1.5], $polygon->getBarycenter(), 0.5); } + /** + * @testdox The regular area can be calculated with the side length + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testRegularAreaByLength() { self::assertEqualsWithDelta(3 * 3, Polygon::getRegularAreaByLength(3.0, 4), 0.01); } + /** + * @testdox The regular area can be calculated with the radius + * @covers phpOMS\Math\Geometry\Shape\D2\Polygon + * @group framework + */ public function testRegularAreaByRadius() { self::assertEqualsWithDelta(3 * 3 , Polygon::getRegularAreaByRadius(1.5, 4), 0.01); diff --git a/tests/Math/Geometry/Shape/D2/QuadrilateralTest.php b/tests/Math/Geometry/Shape/D2/QuadrilateralTest.php index e34d42f11..6cebd3694 100644 --- a/tests/Math/Geometry/Shape/D2/QuadrilateralTest.php +++ b/tests/Math/Geometry/Shape/D2/QuadrilateralTest.php @@ -17,10 +17,17 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Quadrilateral; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\QuadrilateralTest: Quadrilateral shape + * * @internal */ class QuadrilateralTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The area can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Quadrilateral + * @group framework + */ public function testArea() : void { self::assertEqualsWithDelta(10.78, Quadrilateral::getSurfaceFromSidesAndAngle(4.0, 2.0, 4.0, 3.5, 106.56), 0.01); diff --git a/tests/Math/Geometry/Shape/D2/RectangleTest.php b/tests/Math/Geometry/Shape/D2/RectangleTest.php index 38d0f69dc..e0a68b681 100644 --- a/tests/Math/Geometry/Shape/D2/RectangleTest.php +++ b/tests/Math/Geometry/Shape/D2/RectangleTest.php @@ -17,20 +17,37 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Rectangle; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\RectangleTest: Rectangle shape + * * @internal */ class RectangleTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Rectangle + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(10, Rectangle::getSurface(5, 2), 0.001); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Rectangle + * @group framework + */ public function testPerimeter() : void { self::assertEqualsWithDelta(10, Rectangle::getPerimeter(2, 3), 0.001); } + /** + * @testdox The diagonal can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Rectangle + * @group framework + */ public function testDiagonal() : void { self::assertEqualsWithDelta(32.7, Rectangle::getDiagonal(30, 13), 0.01); diff --git a/tests/Math/Geometry/Shape/D2/TrapezoidTest.php b/tests/Math/Geometry/Shape/D2/TrapezoidTest.php index 90796215e..710c75224 100644 --- a/tests/Math/Geometry/Shape/D2/TrapezoidTest.php +++ b/tests/Math/Geometry/Shape/D2/TrapezoidTest.php @@ -17,25 +17,47 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Trapezoid; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\TrapezoidTest: Trapezoid shape + * * @internal */ class TrapezoidTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Trapezoid + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(10, Trapezoid::getSurface(2, 3, 4), 0.001); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Trapezoid + * @group framework + */ public function testPerimeter() : void { self::assertEqualsWithDelta(14, Trapezoid::getPerimeter(2, 3, 4, 5), 0.001); } + /** + * @testdox The height can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Trapezoid + * @group framework + */ public function testHeight() : void { self::assertEqualsWithDelta(4, Trapezoid::getHeight(10, 2, 3), 0.001); } + /** + * @testdox The side lengths can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Trapezoid + * @group framework + */ public function testSideLength() : void { self::assertEqualsWithDelta(2, Trapezoid::getA(10, 4, 3), 0.001); diff --git a/tests/Math/Geometry/Shape/D2/TriangleTest.php b/tests/Math/Geometry/Shape/D2/TriangleTest.php index eec0c2acd..f157be11c 100644 --- a/tests/Math/Geometry/Shape/D2/TriangleTest.php +++ b/tests/Math/Geometry/Shape/D2/TriangleTest.php @@ -17,25 +17,47 @@ namespace phpOMS\tests\Math\Geometry\Shape\D2; use phpOMS\Math\Geometry\Shape\D2\Triangle; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D2\TriangleTest: Triangle shape + * * @internal */ class TriangleTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Triangle + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(3, Triangle::getSurface(2, 3), 0.001); } + /** + * @testdox The perimeter can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Triangle + * @group framework + */ public function testPerimeter() : void { self::assertEqualsWithDelta(9, Triangle::getPerimeter(2, 3, 4), 0.001); } + /** + * @testdox The height can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Triangle + * @group framework + */ public function testHeight() : void { self::assertEqualsWithDelta(3, Triangle::getHeight(3, 2), 0.001); } + /** + * @testdox The hypotenuse can be calculated + * @covers phpOMS\Math\Geometry\Shape\D2\Triangle + * @group framework + */ public function testHypot() : void { self::assertEqualsWithDelta(5, Triangle::getHypot(4, 3), 0.001); diff --git a/tests/Math/Geometry/Shape/D3/ConeTest.php b/tests/Math/Geometry/Shape/D3/ConeTest.php index 271e8b1dc..157393672 100644 --- a/tests/Math/Geometry/Shape/D3/ConeTest.php +++ b/tests/Math/Geometry/Shape/D3/ConeTest.php @@ -17,25 +17,47 @@ namespace phpOMS\tests\Math\Geometry\Shape\D3; use phpOMS\Math\Geometry\Shape\D3\Cone; /** + * @testdox phpOMS\tests\Math\Geometry\Shape\D3\ConeTest: Cone shape + * * @internal */ class ConeTest extends \PHPUnit\Framework\TestCase { + /** + * @testdox The volume can be calculated + * @covers phpOMS\Math\Geometry\Shape\D3\Cone + * @group framework + */ public function testVolume() : void { self::assertEqualsWithDelta(12.57, Cone::getVolume(2, 3), 0.01); } + /** + * @testdox The surface can be calculated + * @covers phpOMS\Math\Geometry\Shape\D3\Cone + * @group framework + */ public function testSurface() : void { self::assertEqualsWithDelta(35.22, Cone::getSurface(2, 3), 0.01); } + /** + * @testdox The slant height can be calculated + * @covers phpOMS\Math\Geometry\Shape\D3\Cone + * @group framework + */ public function testSlantHeight() : void { self::assertEqualsWithDelta(3.61, Cone::getSlantHeight(2, 3), 0.01); } + /** + * @testdox The height can be calculated with the volume + * @covers phpOMS\Math\Geometry\Shape\D3\Cone + * @group framework + */ public function testHeightFromVolume() : void { self::assertEqualsWithDelta(3, Cone::getHeightFromVolume(12.57, 2), 0.01); diff --git a/tests/Math/Matrix/MatrixTest.php b/tests/Math/Matrix/MatrixTest.php index d450e2dba..ef60f7820 100644 --- a/tests/Math/Matrix/MatrixTest.php +++ b/tests/Math/Matrix/MatrixTest.php @@ -49,6 +49,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix can return its dimension * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testBase() : void { @@ -59,6 +60,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix can be right-hand multiplicated with a matrix * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testMultMatrix() : void { @@ -68,6 +70,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix can be right-hand multiplicated with a scalar * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testMultMatrixScalar() : void { @@ -77,6 +80,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A scalar can be added to every matrix element * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testAddScalar() : void { @@ -89,6 +93,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A scalar can be subtracted from every matrix element * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testSubScalar() : void { @@ -101,6 +106,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Two matrices can be added to each other * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testAddMatrix() : void { @@ -116,6 +122,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Two matrices can be subtracted from each other * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testSubMatrix() : void { @@ -131,6 +138,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox The determinant of a matrix can be calculated * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testDet() : void { @@ -147,6 +155,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A symmetric matrix can be validated for symmetry * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testSymmetry() : void { @@ -163,6 +172,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-symmetric matrix cannot be validated for symmetry * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidSymmetry() : void { @@ -179,6 +189,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix can be transposed * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testTranspose() : void { @@ -194,6 +205,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix equation Ax = b can be solved for x * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testSolve() : void { @@ -213,6 +225,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox The rank of a matrix can be calculated * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testRank() : void { @@ -275,6 +288,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox The matrix elements can be set and returned * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testMatrixInputOutput() : void { @@ -307,6 +321,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox A matrix can be accessed like a 1-dimensional array * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testArrayAccess() : void { @@ -337,6 +352,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Sub matrices can be extracted from a matrix * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testMatrixExtract() : void { @@ -372,6 +388,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting a matrix element outside of the dimensions throws a InvalidDimensionException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidSetIndexException() : void { @@ -388,6 +405,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Returning a matrix element outside of the dimensions throws a InvalidDimensionException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidGetIndexException() : void { @@ -404,6 +422,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Subtracting a invalid data type from a matrix throws a InvalidArgumentException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidSub() : void { @@ -421,6 +440,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Adding a invalid data type from a matrix throws a InvalidArgumentException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidAdd() : void { @@ -438,6 +458,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiplicating a invalid data type from a matrix throws a InvalidArgumentException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidMult() : void { @@ -455,6 +476,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Adding a matrix with a different dimension to a matrix throws a InvalidDimensionException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidDimensionAdd() : void { @@ -472,6 +494,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Subtracting a matrix from a different dimension to a matrix throws a InvalidDimensionException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidDimensionSub() : void { @@ -489,6 +512,7 @@ class MatrixTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiplicating a matrix with a different n x m dimension to a matrix throws a InvalidDimensionException * @covers phpOMS\Math\Matrix\Matrix + * @group framework */ public function testInvalidDimensionMult() : void { diff --git a/tests/Math/Matrix/VectorTest.php b/tests/Math/Matrix/VectorTest.php index 8fefa3175..c754c3465 100644 --- a/tests/Math/Matrix/VectorTest.php +++ b/tests/Math/Matrix/VectorTest.php @@ -26,6 +26,7 @@ class VectorTest extends \PHPUnit\Framework\TestCase /** * @testdox The vector has the expected default values after initialization * @covers phpOMS\Math\Matrix\Vector + * @group framework */ public function testDefault() : void { @@ -39,6 +40,7 @@ class VectorTest extends \PHPUnit\Framework\TestCase /** * @testdox The vector values can be set and returned * @covers phpOMS\Math\Matrix\Vector + * @group framework */ public function testValueInputOutput() : void { @@ -54,6 +56,7 @@ class VectorTest extends \PHPUnit\Framework\TestCase /** * @testdox The vector dimension can be returned * @covers phpOMS\Math\Matrix\Vector + * @group framework */ public function testDim() : void { diff --git a/tests/Math/Number/NumberTypeTest.php b/tests/Math/Number/NumberTypeTest.php index f99b044ff..eb79d9431 100644 --- a/tests/Math/Number/NumberTypeTest.php +++ b/tests/Math/Number/NumberTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Math\Number\NumberType; class NumberTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class NumberTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class NumberTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Math/Numerics/IntegrationTest.php b/tests/Math/Numerics/IntegrationTest.php index fab6152e3..d1d86c99e 100644 --- a/tests/Math/Numerics/IntegrationTest.php +++ b/tests/Math/Numerics/IntegrationTest.php @@ -30,6 +30,7 @@ class IntegrationTest extends \PHPUnit\Framework\TestCase /** * @testdox Integration by summing up rectangle areas from the left side * @covers phpOMS\tests\Math\Numerics\IntegrationTest + * @group framework */ public function testLRect(): void { @@ -42,6 +43,7 @@ class IntegrationTest extends \PHPUnit\Framework\TestCase /** * @testdox Integration by summing up rectangle areas from the right side * @covers phpOMS\tests\Math\Numerics\IntegrationTest + * @group framework */ public function testRRect(): void { @@ -54,6 +56,7 @@ class IntegrationTest extends \PHPUnit\Framework\TestCase /** * @testdox Integration by summing up rectangle areas from the middle * @covers phpOMS\tests\Math\Numerics\IntegrationTest + * @group framework */ public function testMRect(): void { @@ -66,6 +69,7 @@ class IntegrationTest extends \PHPUnit\Framework\TestCase /** * @testdox Integration by summing up trapezoid areas * @covers phpOMS\tests\Math\Numerics\IntegrationTest + * @group framework */ public function testTrapeze(): void { @@ -78,6 +82,7 @@ class IntegrationTest extends \PHPUnit\Framework\TestCase /** * @testdox Integration by using the simpson formula * @covers phpOMS\tests\Math\Numerics\IntegrationTest + * @group framework */ public function testSimpson(): void { diff --git a/tests/Math/Numerics/Interpolation/CubicSplineInterpolationTest.php b/tests/Math/Numerics/Interpolation/CubicSplineInterpolationTest.php index d02184bab..e8b9fa9fb 100644 --- a/tests/Math/Numerics/Interpolation/CubicSplineInterpolationTest.php +++ b/tests/Math/Numerics/Interpolation/CubicSplineInterpolationTest.php @@ -27,6 +27,7 @@ class CubicSplineInterpolationTest extends \PHPUnit\Framework\TestCase /** * @testdox The spline interpolation using the first derivative is correct * @covers phpOMS\Math\Numerics\Interpolation\CubicSplineInterpolation + * @group framework */ public function testInterpolationFirstDerivative() : void { @@ -47,6 +48,7 @@ class CubicSplineInterpolationTest extends \PHPUnit\Framework\TestCase /** * @testdox The spline interpolation using the second derivative is correct * @covers phpOMS\Math\Numerics\Interpolation\CubicSplineInterpolation + * @group framework */ public function testInterpolationSecondDerivative() : void { diff --git a/tests/Math/Numerics/Interpolation/LagrangeInterpolationTest.php b/tests/Math/Numerics/Interpolation/LagrangeInterpolationTest.php index 1f0ad5e34..7bf6198f3 100644 --- a/tests/Math/Numerics/Interpolation/LagrangeInterpolationTest.php +++ b/tests/Math/Numerics/Interpolation/LagrangeInterpolationTest.php @@ -26,6 +26,7 @@ class LagrangeInterpolationTest extends \PHPUnit\Framework\TestCase /** * @testdox The lagrange interpolation is correct * @covers phpOMS\Math\Numerics\Interpolation\LagrangeInterpolation + * @group framework */ public function testInterpolation() : void { diff --git a/tests/Math/Numerics/Interpolation/LinearInterpolationTest.php b/tests/Math/Numerics/Interpolation/LinearInterpolationTest.php index 6b7c2fb3b..52b6e8d39 100644 --- a/tests/Math/Numerics/Interpolation/LinearInterpolationTest.php +++ b/tests/Math/Numerics/Interpolation/LinearInterpolationTest.php @@ -26,6 +26,7 @@ class LinearInterpolationTest extends \PHPUnit\Framework\TestCase /** * @testdox The linear interpolation is correct * @covers phpOMS\Math\Numerics\Interpolation\LinearInterpolation + * @group framework */ public function testInterpolation() : void { diff --git a/tests/Math/Parser/EvaluatorTest.php b/tests/Math/Parser/EvaluatorTest.php index e649952f3..461fddc97 100644 --- a/tests/Math/Parser/EvaluatorTest.php +++ b/tests/Math/Parser/EvaluatorTest.php @@ -26,6 +26,7 @@ class EvaluatorTest extends \PHPUnit\Framework\TestCase /** * @testdox Basic formulas using +, -, *, /, () and ^ can be avluated * @covers phpOMS\Math\Parser\Evaluator + * @group framework */ public function testBasicEvaluation() : void { @@ -36,6 +37,7 @@ class EvaluatorTest extends \PHPUnit\Framework\TestCase /** * @testdox Badly formed formulas return null as result * @covers phpOMS\Math\Parser\Evaluator + * @group framework */ public function testInvalidEvaluation() : void { diff --git a/tests/Math/Statistic/AverageTest.php b/tests/Math/Statistic/AverageTest.php index 21b22e4c6..a14dcfce3 100644 --- a/tests/Math/Statistic/AverageTest.php +++ b/tests/Math/Statistic/AverageTest.php @@ -25,6 +25,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase { /** * @testdox The average change of a dataset is correctly calculated + * @group framework */ public function testAverage() : void { @@ -33,6 +34,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The average mean of angles is calculated correctly + * @group framework */ public function testAngleMean() : void { @@ -45,6 +47,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The arithmetic mean is correctly calculated + * @group framework */ public function testArithmeticMean() : void { @@ -53,6 +56,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The weighted mean is correctly calculated + * @group framework */ public function testWeightedAverage() : void { @@ -64,6 +68,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The geometric mean is correctly calculated + * @group framework */ public function testGeometricMean() : void { @@ -72,6 +77,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The harmonic mean is correctly calculated + * @group framework */ public function testHarmonicMean() : void { @@ -80,6 +86,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The moving average is correctly calculated + * @group framework */ public function testMovingAverage() : void { @@ -95,6 +102,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox Different weight and dataset dimensions throw a InvalidDimensionException + * @group framework */ public function testInvalidWeightedAverageDimension() : void { @@ -105,6 +113,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset for the arithmetic mean throws a ZeroDevisionException + * @group framework */ public function testInvalidArithmeticMeanZeroDevision() : void { @@ -115,6 +124,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset for the moving average throws a Exception + * @group framework */ public function testInvalidMovingAverageZeroDevision() : void { @@ -125,6 +135,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset for the harmonic mean throws a ZeroDevisionException + * @group framework */ public function testInvalidHarmonicMeanZeroDevision() : void { @@ -135,6 +146,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset for the geometric mean throws a ZeroDevisionException + * @group framework */ public function testInvalidGeometricMean() : void { @@ -145,6 +157,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox A dataset with a 0 element throws a ZeroDevisionException + * @group framework */ public function testInvalidHarmonicMean() : void { @@ -155,6 +168,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The mode is correctly calculated + * @group framework */ public function testMode() : void { @@ -163,6 +177,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase /** * @testdox The median is correctly calculated + * @group framework */ public function testMedian() : void { diff --git a/tests/Math/Statistic/CorrelationTest.php b/tests/Math/Statistic/CorrelationTest.php index 279d9dbbb..53c83db04 100644 --- a/tests/Math/Statistic/CorrelationTest.php +++ b/tests/Math/Statistic/CorrelationTest.php @@ -25,6 +25,7 @@ class CorrelationTest extends \PHPUnit\Framework\TestCase { /** * @testdox The correlation coefficient (Bravis Person) is calculated correctly + * @group framework */ public function testBravisPersonCorrelationCoefficient() : void { @@ -39,6 +40,7 @@ class CorrelationTest extends \PHPUnit\Framework\TestCase /** * @testdox The autocorrelation coefficient is calculated correctly + * @group framework */ public function testAutocorrelationCoefficient() : void { @@ -55,6 +57,7 @@ class CorrelationTest extends \PHPUnit\Framework\TestCase /** * @testdox The portmanteau test (Box Pierce) is correct + * @group framework */ public function testPortmanteauTestBoxPierce() : void { @@ -75,6 +78,7 @@ class CorrelationTest extends \PHPUnit\Framework\TestCase /** * @testdox The portmanteau test (Ljung Box) is correct + * @group framework */ public function testPortmanteauTestLjungBox() : void { diff --git a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php index ed2a44a64..da0c909ac 100644 --- a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php @@ -38,6 +38,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The regression parameters are calcualated correctly + * @group framework */ public function testRegression() : void { @@ -46,6 +47,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The slope is calculated correctly + * @group framework */ public function testSlope() : void { @@ -54,6 +56,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The elasticity is calculated correctly + * @group framework */ public function testElasticity() : void { @@ -62,6 +65,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The standard error of the population is calculated correctly + * @group framework */ public function testStandardErrorOfRegressionPopulation() : void { @@ -80,6 +84,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The standard error of the sample is calculated correctly + * @group framework */ public function testStandardErrorOfRegressionSample() : void { @@ -98,6 +103,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The prediction interval is calculated correctly + * @group framework */ public function testPredictionInterval() : void { @@ -121,6 +127,7 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dimension sizes for x and y coordinates throw a InvalidDimensionException + * @group framework */ public function testInvalidDimension() : void { diff --git a/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php index ece6dc5a7..5ad2fb59d 100644 --- a/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php @@ -36,6 +36,7 @@ class LevelLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The regression parameters are calcualated correctly + * @group framework */ public function testRegression() : void { @@ -44,6 +45,7 @@ class LevelLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The slope is calculated correctly + * @group framework */ public function testSlope() : void { @@ -53,6 +55,7 @@ class LevelLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The elasticity is calculated correctly + * @group framework */ public function testElasticity() : void { @@ -62,6 +65,7 @@ class LevelLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dimension sizes for x and y coordinates throw a InvalidDimensionException + * @group framework */ public function testInvalidDimension() : void { diff --git a/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php index ad4b77bfd..af9aa5a46 100644 --- a/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php @@ -36,6 +36,7 @@ class LogLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The regression parameters are calcualated correctly + * @group framework */ public function testRegression() : void { @@ -44,6 +45,7 @@ class LogLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The slope is calculated correctly + * @group framework */ public function testSlope() : void { @@ -53,6 +55,7 @@ class LogLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The elasticity is calculated correctly + * @group framework */ public function testElasticity() : void { @@ -62,6 +65,7 @@ class LogLevelRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dimension sizes for x and y coordinates throw a InvalidDimensionException + * @group framework */ public function testInvalidDimension() : void { diff --git a/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php index a417e20c6..0fe8d8485 100644 --- a/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php @@ -36,6 +36,7 @@ class LogLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The regression parameters are calcualated correctly + * @group framework */ public function testRegression() : void { @@ -44,6 +45,7 @@ class LogLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The slope is calculated correctly + * @group framework */ public function testSlope() : void { @@ -54,6 +56,7 @@ class LogLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The elasticity is calculated correctly + * @group framework */ public function testElasticity() : void { @@ -62,6 +65,7 @@ class LogLogRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dimension sizes for x and y coordinates throw a InvalidDimensionException + * @group framework */ public function testInvalidDimension() : void { diff --git a/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php index 07de890c9..07d6465bd 100644 --- a/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php @@ -36,6 +36,7 @@ class PolynomialRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox The regression parameters are calcualated correctly + * @group framework */ public function testRegression() : void { @@ -44,6 +45,7 @@ class PolynomialRegressionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dimension sizes for x and y coordinates throw a InvalidDimensionException + * @group framework */ public function testInvalidDimension() : void { diff --git a/tests/Math/Statistic/MeasureOfDispersionTest.php b/tests/Math/Statistic/MeasureOfDispersionTest.php index 4c39efb79..8f3077b12 100644 --- a/tests/Math/Statistic/MeasureOfDispersionTest.php +++ b/tests/Math/Statistic/MeasureOfDispersionTest.php @@ -25,6 +25,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase { /** * @testdox The range of a dataset is correctly calculated + * @group framework */ public function testRange() : void { @@ -33,6 +34,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The standard deviation is correctly calculated + * @group framework */ public function testStandardDeviation() : void { @@ -41,6 +43,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The empirical covariance is correctly calculated + * @group framework */ public function testEmpiricalCovariance() : void { @@ -55,6 +58,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The sample variance is correctly calculated + * @group framework */ public function testVarianceSample() : void { @@ -63,6 +67,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The population/empirical variance is correctly calculated + * @group framework */ public function testVariancePopulation() : void { @@ -71,6 +76,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The mean deviations are correctly calculated + * @group framework */ public function testDeviation() : void { @@ -81,6 +87,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The mean deviations for every dataset element is correctly calculated + * @group framework */ public function testDeviationArray() : void { @@ -105,6 +112,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The empirical variation coefficient is correctly calculated + * @group framework */ public function testEmpiricalVariationCoefficient() : void { @@ -113,6 +121,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The interquartile range is correctly calculated + * @group framework */ public function testIQR() : void { @@ -122,6 +131,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox The empirical varation coefficient with a mean of 0 throws a ZeroDevisionException + * @group framework */ public function testInvalidEmpiricalVariationCoefficient() : void { @@ -132,6 +142,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset in the empirical covariance throws a ZeroDevisionException + * @group framework */ public function testInvalidEmpiricalCovariance() : void { @@ -142,6 +153,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox Different dataset saces in the empirical covariance throw a InvalidDimensionException + * @group framework */ public function testInvalidEmpiricalCovarianceDimension() : void { @@ -152,6 +164,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset in the sample variance throws a ZeroDevisionException + * @group framework */ public function testInvalidSampleVariance() : void { @@ -162,6 +175,7 @@ class MeasureOfDispersionTest extends \PHPUnit\Framework\TestCase /** * @testdox An empty dataset in the empirical/population variance throws a ZeroDevisionException + * @group framework */ public function testInvalidEmpiricalVariance() : void { diff --git a/tests/Math/Stochastic/NaiveBayesClassifierTest.php b/tests/Math/Stochastic/NaiveBayesClassifierTest.php index cf6f6b0b6..fae481a9d 100644 --- a/tests/Math/Stochastic/NaiveBayesClassifierTest.php +++ b/tests/Math/Stochastic/NaiveBayesClassifierTest.php @@ -59,6 +59,7 @@ class NaiveBayesClassifierTest extends \PHPUnit\Framework\TestCase /** * @testdox The classification of strings/attributes is correct + * @group framework */ public function testTextClassifier() : void { @@ -75,6 +76,7 @@ class NaiveBayesClassifierTest extends \PHPUnit\Framework\TestCase /** * @testdox The classification of nimeric values is correct + * @group framework */ public function testNumericClassifier() : void { diff --git a/tests/Message/HeaderAbstractTest.php b/tests/Message/HeaderAbstractTest.php index a21a24bb8..2ae471a54 100644 --- a/tests/Message/HeaderAbstractTest.php +++ b/tests/Message/HeaderAbstractTest.php @@ -60,6 +60,7 @@ class HeaderAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The the status code can be set and returned * @covers phpOMS\Message\HeaderAbstract + * @group framework */ public function testStatusCodeInputOutput() : void { diff --git a/tests/Message/Http/BrowserTypeTest.php b/tests/Message/Http/BrowserTypeTest.php index 8fab13138..51f415bd9 100644 --- a/tests/Message/Http/BrowserTypeTest.php +++ b/tests/Message/Http/BrowserTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Http\BrowserType; class BrowserTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class BrowserTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class BrowserTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Message/Http/HeaderTest.php b/tests/Message/Http/HeaderTest.php index e96dc767e..aca58b580 100644 --- a/tests/Message/Http/HeaderTest.php +++ b/tests/Message/Http/HeaderTest.php @@ -36,6 +36,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox The header has the expected default values after initialization * @covers phpOMS\Message\Http\Header + * @group framework */ public function testDefaults() : void { @@ -53,6 +54,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Security policy headers get correctly identified * @covers phpOMS\Message\Http\Header + * @group framework */ public function testSecurityHeader() : void { @@ -66,6 +68,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Header data can be set, checked for existence and returned * @covers phpOMS\Message\Http\Header + * @group framework */ public function testDataInputOutput() : void { @@ -77,6 +80,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Header data can be forced to get overwritten * @covers phpOMS\Message\Http\Header + * @group framework */ public function testOverwrite() : void { @@ -88,6 +92,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox By default header data doesn't get overwritten * @covers phpOMS\Message\Http\Header + * @group framework */ public function testInvalidOverwrite() : void { @@ -99,6 +104,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Header data can be removed * @covers phpOMS\Message\Http\Header + * @group framework */ public function testRemove() : void { @@ -110,6 +116,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing header data cannot be removed * @covers phpOMS\Message\Http\Header + * @group framework */ public function testInvalidRemove() : void { @@ -119,6 +126,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Account data can be set and returned * @covers phpOMS\Message\Http\Header + * @group framework */ public function testAccountInputOutput() : void { @@ -129,6 +137,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be defined as downloadable * @covers phpOMS\Message\Http\Header + * @group framework */ public function testDownloadable() : void { @@ -139,6 +148,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox A header can be locked * @covers phpOMS\Message\Http\Header + * @group framework */ public function testLockInputOutput() : void { @@ -149,6 +159,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox A locked header cannot add new data * @covers phpOMS\Message\Http\Header + * @group framework */ public function testLockInvalidSet() : void { @@ -159,6 +170,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox A locked header cannot remove data * @covers phpOMS\Message\Http\Header + * @group framework */ public function testLockInvalidRemove() : void { @@ -169,6 +181,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox The header can generate default http headers based on status codes * @covers phpOMS\Message\Http\Header + * @group framework */ public function testHeaderGeneration() : void { @@ -194,6 +207,7 @@ class HeaderTest extends \PHPUnit\Framework\TestCase /** * @testdox Security header data cannot be changed once defined * @covers phpOMS\Message\Http\Header + * @group framework */ public function testInvalidOverwriteSecurityHeader() : void { diff --git a/tests/Message/Http/OSTypeTest.php b/tests/Message/Http/OSTypeTest.php index 24d53f59a..7cfb6c57c 100644 --- a/tests/Message/Http/OSTypeTest.php +++ b/tests/Message/Http/OSTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Http\OSType; class OSTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class OSTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void diff --git a/tests/Message/Http/RequestMethodTest.php b/tests/Message/Http/RequestMethodTest.php index c01f656e8..7021447e7 100644 --- a/tests/Message/Http/RequestMethodTest.php +++ b/tests/Message/Http/RequestMethodTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Http\RequestMethod; class RequestMethodTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class RequestMethodTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class RequestMethodTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Message/Http/RequestStatusCodeTest.php b/tests/Message/Http/RequestStatusCodeTest.php index 58d215fdc..283cc89d8 100644 --- a/tests/Message/Http/RequestStatusCodeTest.php +++ b/tests/Message/Http/RequestStatusCodeTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Http\RequestStatusCode; class RequestStatusCodeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class RequestStatusCodeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class RequestStatusCodeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Message/Http/RequestStatusTest.php b/tests/Message/Http/RequestStatusTest.php index c955c013d..5c5f74a46 100644 --- a/tests/Message/Http/RequestStatusTest.php +++ b/tests/Message/Http/RequestStatusTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Http\RequestStatus; class RequestStatusTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class RequestStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class RequestStatusTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Message/Http/RequestTest.php b/tests/Message/Http/RequestTest.php index aa211ff3c..19d90aad1 100644 --- a/tests/Message/Http/RequestTest.php +++ b/tests/Message/Http/RequestTest.php @@ -32,6 +32,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The request has the expected default values after initialization * @covers phpOMS\Message\Http\Request + * @group framework */ public function testDefault() : void { @@ -62,6 +63,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The OS can be set and returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testOSInputOutput() : void { @@ -74,6 +76,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The browser can be set and returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testBrowserTypeInputOutput() : void { @@ -90,6 +93,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The request method can be set and returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testRequestMethodInputOutput() : void { @@ -103,6 +107,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The route verb gets correctly infered from the request method * @covers phpOMS\Message\Http\Request + * @group framework */ public function testRequestMethodToRouteVerb() : void { @@ -121,6 +126,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The request is correctly constracted * @covers phpOMS\Message\Http\Request + * @group framework */ public function testConstructInputOutput() : void { @@ -132,6 +138,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The url hashes for the different paths get correctly generated * @covers phpOMS\Message\Http\Request + * @group framework */ public function testHashingInputOutput() : void { @@ -149,6 +156,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Request data can be set and returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testDataInputOutput() : void { @@ -163,6 +171,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Request data can be forcefully overwritten * @covers phpOMS\Message\Http\Request + * @group framework */ public function testOverwrite() : void { @@ -176,6 +185,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Request data is not overwritten by default * @covers phpOMS\Message\Http\Request + * @group framework */ public function testInvalidOverwrite() : void { @@ -189,6 +199,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox The uri can be changed and returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testUriInputOutput() : void { @@ -201,6 +212,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Json data can be read from the request * @covers phpOMS\Message\Http\Request + * @group framework */ public function testDataJsonRead() : void { @@ -219,6 +231,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing json data reads return empty data * @covers phpOMS\Message\Http\Request + * @group framework */ public function testEmptyDataJsonRead() : void { @@ -230,6 +243,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid json data returns empty data * @covers phpOMS\Message\Http\Request + * @group framework */ public function testInvalidDataJsonRead() : void { @@ -248,6 +262,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox List data can be read from the request * @covers phpOMS\Message\Http\Request + * @group framework */ public function testDataList() : void { @@ -265,6 +280,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing list data reads return empty data * @covers phpOMS\Message\Http\Request + * @group framework */ public function testEmptyDataList() : void { @@ -276,6 +292,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox Request data can be read with pattern matching * @covers phpOMS\Message\Http\Request + * @group framework */ public function testDataLike() : void { @@ -291,6 +308,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox In case of no pattern matches empty data is returned * @covers phpOMS\Message\Http\Request + * @group framework */ public function testInvalidDataLikeMatch() : void { @@ -306,6 +324,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A request with a path can be correctly casted to a string * @covers phpOMS\Message\Http\Request + * @group framework */ public function testToString() : void { @@ -316,6 +335,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A request with a path and manually added data can be correctly casted to a string * @covers phpOMS\Message\Http\Request + * @group framework */ public function testToStringData() : void { @@ -329,6 +349,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A request with a path, query parameters and manually added data can be correctly casted to a string * @covers phpOMS\Message\Http\Request + * @group framework */ public function testToStringGetData() : void { @@ -343,6 +364,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A rest request can be made from a request and the result can be read * @covers phpOMS\Message\Http\Request + * @group framework */ public function testRestRequest() : void { @@ -358,6 +380,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid https port throws a OutOfRangeException * @covers phpOMS\Message\Http\Request + * @group framework */ public function testInvalidHttpsPort() : void { @@ -370,6 +393,7 @@ class RequestTest extends \PHPUnit\Framework\TestCase /** * @testdox A Invalid route verb throws a Exception * @covers phpOMS\Message\Http\Request + * @group framework */ public function testInvalidRouteVerb() : void { diff --git a/tests/Message/Http/ResponseTest.php b/tests/Message/Http/ResponseTest.php index 0be8e2925..7ab6d5139 100644 --- a/tests/Message/Http/ResponseTest.php +++ b/tests/Message/Http/ResponseTest.php @@ -34,6 +34,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox The response has the expected default values after initialization * @covers phpOMS\Message\Http\Response + * @group framework */ public function testDefault() : void { @@ -47,6 +48,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox Response data can be set and retruned * @covers phpOMS\Message\Http\Response + * @group framework */ public function testResponseInputOutput() : void { @@ -57,6 +59,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox Response data can be removed * @covers phpOMS\Message\Http\Response + * @group framework */ public function testRemove() : void { @@ -67,6 +70,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing response data cannot be removed * @covers phpOMS\Message\Http\Response + * @group framework */ public function testInvalidRemove() : void { @@ -79,6 +83,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox Response data can be turned into an array * @covers phpOMS\Message\Http\Response + * @group framework */ public function testToArray() : void { @@ -117,6 +122,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox A response with json as content-type is automatically rendered as json data * @covers phpOMS\Message\Http\Response + * @group framework */ public function testJsonRender() : void { @@ -156,6 +162,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox A response can be forced to minimize the content by removing newlines and whitespaces * @covers phpOMS\Message\Http\Response + * @group framework */ public function testMinimizedRender() : void { @@ -174,6 +181,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid response data results in an empty array * @covers phpOMS\Message\Http\Response + * @group framework */ public function testInvalidResponseDataToArray() : void { @@ -184,6 +192,7 @@ class ResponseTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid response data results in an empty render * @covers phpOMS\Message\Http\Response + * @group framework */ public function testInvalidResponseDataRender() : void { diff --git a/tests/Message/Http/RestTest.php b/tests/Message/Http/RestTest.php index a524b8dc3..1cda26117 100644 --- a/tests/Message/Http/RestTest.php +++ b/tests/Message/Http/RestTest.php @@ -29,6 +29,7 @@ class RestTest extends \PHPUnit\Framework\TestCase /** * @testdox A get request successfully returns the expected result * @covers phpOMS\Message\Http\Rest + * @group framework */ public function testRequest() : void { @@ -44,6 +45,7 @@ class RestTest extends \PHPUnit\Framework\TestCase /** * @testdox A post request with data successfully returns the expected result * @covers phpOMS\Message\Http\Rest + * @group framework */ public function testPost() : void { @@ -56,6 +58,7 @@ class RestTest extends \PHPUnit\Framework\TestCase /** * @testdox A put request with data successfully returns the expected result * @covers phpOMS\Message\Http\Rest + * @group framework */ public function testPut() : void { @@ -68,6 +71,7 @@ class RestTest extends \PHPUnit\Framework\TestCase /** * @testdox A delete request with data successfully returns the expected result * @covers phpOMS\Message\Http\Rest + * @group framework */ public function testDelete() : void { @@ -80,6 +84,7 @@ class RestTest extends \PHPUnit\Framework\TestCase /** * @testdox A get request with data successfully returns the expected result * @covers phpOMS\Message\Http\Rest + * @group framework */ public function testGet() : void { diff --git a/tests/Message/ResponseAbstractTest.php b/tests/Message/ResponseAbstractTest.php index 14f978b98..473f56bf1 100644 --- a/tests/Message/ResponseAbstractTest.php +++ b/tests/Message/ResponseAbstractTest.php @@ -46,6 +46,7 @@ class ResponseAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The response has the expected default values after initialization * @covers phpOMS\Message\ResponseAbstract + * @group framework */ public function testDefault() : void { @@ -56,6 +57,7 @@ class ResponseAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The response can be json serialized * @covers phpOMS\Message\ResponseAbstract + * @group framework */ public function testJsonSerialize() : void { @@ -65,6 +67,7 @@ class ResponseAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be set and returned for the response * @covers phpOMS\Message\ResponseAbstract + * @group framework */ public function testDataInputOutput() : void { diff --git a/tests/Message/Socket/PacketTypeTest.php b/tests/Message/Socket/PacketTypeTest.php index bcb2c2fe6..091c47e63 100644 --- a/tests/Message/Socket/PacketTypeTest.php +++ b/tests/Message/Socket/PacketTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Message\Socket\PacketType; class PacketTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class PacketTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class PacketTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Model/Html/HeadTest.php b/tests/Model/Html/HeadTest.php index 180ab447f..5948a905f 100644 --- a/tests/Model/Html/HeadTest.php +++ b/tests/Model/Html/HeadTest.php @@ -34,6 +34,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The head has the expected default values after initialization * @covers phpOMS\Model\Html\Head + * @group framework */ public function testDefault() : void { @@ -52,6 +53,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The title can be set and returned * @covers phpOMS\Model\Html\Head + * @group framework */ public function testTitleInputOutput() : void { @@ -62,6 +64,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The style can be set and returned * @covers phpOMS\Model\Html\Head + * @group framework */ public function testStyleInputOutput() : void { @@ -72,6 +75,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The script can be set and returned * @covers phpOMS\Model\Html\Head + * @group framework */ public function testScriptInputOutput() : void { @@ -82,6 +86,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The language can be set and returned * @covers phpOMS\Model\Html\Head + * @group framework */ public function testLanguageInputOutput() : void { @@ -92,6 +97,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The assets can be set and rendered * @covers phpOMS\Model\Html\Head + * @group framework */ public function testAssetRender() : void { @@ -114,6 +120,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The assets can be set and rendered at the end of the document * @covers phpOMS\Model\Html\Head + * @group framework */ public function testAssetLateRender() : void { @@ -124,6 +131,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The assets can be set and rendered with attributes * @covers phpOMS\Model\Html\Head + * @group framework */ public function testAssetRenderWithAttribute() : void { @@ -134,6 +142,7 @@ class HeadTest extends \PHPUnit\Framework\TestCase /** * @testdox The assets can be set and rendered at the end of the document with attributes * @covers phpOMS\Model\Html\Head + * @group framework */ public function testAssetLateRenderWithAttribute() : void { diff --git a/tests/Model/Html/MetaTest.php b/tests/Model/Html/MetaTest.php index 8f6b6a8a7..4c4d0dcc1 100644 --- a/tests/Model/Html/MetaTest.php +++ b/tests/Model/Html/MetaTest.php @@ -33,6 +33,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox The meta data has the expected default values after initialization * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testDefault() : void { @@ -49,6 +50,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox A keyword can be added and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testKeywordInputOutput() : void { @@ -59,6 +61,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox The author can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testAuthorInputOutput() : void { @@ -69,6 +72,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox The charset can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testCharsetInputOutput() : void { @@ -79,6 +83,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox The description can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testDescriptionInputOutput() : void { @@ -89,6 +94,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox A property can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testPropertyInputOutput() : void { @@ -99,6 +105,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox A itemprop can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testItempropInputOutput() : void { @@ -109,6 +116,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox A name can be set and returned * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testNameInputOutput() : void { @@ -119,6 +127,7 @@ class MetaTest extends \PHPUnit\Framework\TestCase /** * @testdox The meta data can be rendered * @covers phpOMS\Model\Html\Meta + * @group framework */ public function testRender() : void { diff --git a/tests/Model/Message/DomActionTest.php b/tests/Model/Message/DomActionTest.php index b8d9c933f..90feb12e0 100644 --- a/tests/Model/Message/DomActionTest.php +++ b/tests/Model/Message/DomActionTest.php @@ -22,6 +22,7 @@ use phpOMS\Model\Message\DomAction; class DomActionTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class DomActionTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class DomActionTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Model/Message/NotifyTypeTest.php b/tests/Model/Message/NotifyTypeTest.php index 40d6b8ae2..a7bf174d0 100644 --- a/tests/Model/Message/NotifyTypeTest.php +++ b/tests/Model/Message/NotifyTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Model\Message\NotifyType; class NotifyTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class NotifyTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class NotifyTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Module/InfoManagerTest.php b/tests/Module/InfoManagerTest.php index aa4b7a04a..c172fa970 100644 --- a/tests/Module/InfoManagerTest.php +++ b/tests/Module/InfoManagerTest.php @@ -28,6 +28,7 @@ class InfoManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A info file can be correctly loaded * @covers phpOMS\Module\InfoManager + * @group framework */ public function testLoad() : void { @@ -52,6 +53,7 @@ class InfoManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A info file can be modified * @covers phpOMS\Module\InfoManager + * @group framework */ public function testChange() : void { @@ -75,6 +77,7 @@ class InfoManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid info file path load throws a PathException * @covers phpOMS\Module\InfoManager + * @group framework */ public function testInvalidPathLoad() : void { @@ -87,6 +90,7 @@ class InfoManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid info file path update throws a PathException * @covers phpOMS\Module\InfoManager + * @group framework */ public function testInvalidPathUpdate() : void { @@ -99,6 +103,7 @@ class InfoManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid change data throws a InvalidArgumentException * @covers phpOMS\Module\InfoManager + * @group framework */ public function testInvalidDataSet() : void { diff --git a/tests/Module/ModuleAbstractTest.php b/tests/Module/ModuleAbstractTest.php index 53cb76d5c..069d89bc0 100644 --- a/tests/Module/ModuleAbstractTest.php +++ b/tests/Module/ModuleAbstractTest.php @@ -53,6 +53,7 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The constant values of the abstract module are overwritten by the extension * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testConstants() : void { @@ -63,6 +64,7 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The dependencies of the module can be returned * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testDependencies() : void { @@ -72,6 +74,7 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid language or theme returns in an empty localization/language dataset * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testInvalidLocalization() : void { @@ -81,6 +84,7 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The module can automatically generate a json response based on provided data for the frontend * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testFillJson() : void { @@ -103,6 +107,7 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The module can automatically generate a json response based on provided data * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testFillJsonRaw() : void { diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index 144ebcbda..55751fce3 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -45,6 +45,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The module manager has the expected attributes * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testAttributes() : void { @@ -60,6 +61,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid module initializations returns a null module * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testUnknownModuleInit() : void { @@ -70,6 +72,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Unknown modules return a null module * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testUnknownModuleGet() : void { @@ -79,6 +82,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Unknown modules cannot get activested, deactivated * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testUnknwonModuleStatusChange() : void { @@ -89,6 +93,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Active modules can be returned * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testActiveModules() : void { @@ -100,6 +105,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox All available modules can be returned * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testAllModules() : void { @@ -111,6 +117,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox Installed modules can be returned * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testInstalledModules() : void { @@ -122,6 +129,7 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The valid module can be returned * @covers phpOMS\Module\ModuleManager + * @group framework */ public function testAdminModule() : void { diff --git a/tests/Module/PackageManagerTest.php b/tests/Module/PackageManagerTest.php index 10191b219..35b5f39a2 100644 --- a/tests/Module/PackageManagerTest.php +++ b/tests/Module/PackageManagerTest.php @@ -84,6 +84,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A package can be installed * @covers phpOMS\Module\PackageManager + * @group framework */ public function testPackageValidInstall() : void { @@ -141,6 +142,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A package which didn't get extracted cannot be loaded and throws a PathException * @covers phpOMS\Module\PackageManager + * @group framework */ public function testNotExtractedLoad() : void { @@ -158,6 +160,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid package cannot be installed and throws a Exception * @covers phpOMS\Module\PackageManager + * @group framework */ public function testInvalidInstall() : void { @@ -175,6 +178,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid package key doesn't validate the package * @covers phpOMS\Module\PackageManager + * @group framework */ public function testPackageInvalidKey() : void { @@ -192,6 +196,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid package content doesn't validate the package * @covers phpOMS\Module\PackageManager + * @group framework */ public function testPackageInvalidContent() : void { @@ -210,6 +215,7 @@ class PackageManagerTest extends \PHPUnit\Framework\TestCase /** * @testdox The temporarily extracted package can be cleaned up * @covers phpOMS\Module\PackageManager + * @group framework */ public function testCleanup() : void { diff --git a/tests/Router/RouteVerbTest.php b/tests/Router/RouteVerbTest.php index 5606672f2..9af761c3d 100644 --- a/tests/Router/RouteVerbTest.php +++ b/tests/Router/RouteVerbTest.php @@ -24,6 +24,7 @@ use phpOMS\Router\RouteVerb; class RouteVerbTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void @@ -36,6 +37,7 @@ class RouteVerbTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnumUnique() : void diff --git a/tests/Router/SocketRouterTest.php b/tests/Router/SocketRouterTest.php index aa54d1344..a818edac2 100644 --- a/tests/Router/SocketRouterTest.php +++ b/tests/Router/SocketRouterTest.php @@ -40,6 +40,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox The route result for an empty request is empty * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testDefault() : void { @@ -49,6 +50,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing routing file cannot be imported * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testInvalidRoutingFile() : void { @@ -58,6 +60,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A existing routing file can be imported * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testLoadingRoutesFromFile() : void { @@ -67,6 +70,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A matching route returns the destinations * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testRouteMatching() : void { @@ -81,6 +85,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes can be added dynamically * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testDynamicRouteAdding() : void { @@ -99,6 +104,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes only match if the permissions match * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testWithValidPermissions() : void { @@ -131,6 +137,7 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes don't match if the permissions don't match * @covers phpOMS\Router\SocketRouter + * @group framework */ public function testWithInvalidPermissions() : void { diff --git a/tests/Router/WebRouterTest.php b/tests/Router/WebRouterTest.php index c62f17845..13d077fab 100644 --- a/tests/Router/WebRouterTest.php +++ b/tests/Router/WebRouterTest.php @@ -43,6 +43,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox The route result for an empty request is empty * @covers phpOMS\Router\WebRouter + * @group framework */ public function testDefault() : void { @@ -56,6 +57,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing routing file cannot be imported * @covers phpOMS\Router\WebRouter + * @group framework */ public function testInvalidRoutingFile() : void { @@ -65,6 +67,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A existing routing file can be imported * @covers phpOMS\Router\WebRouter + * @group framework */ public function testLoadingRoutesFromFile() : void { @@ -74,6 +77,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox A matching route returns the destinations * @covers phpOMS\Router\WebRouter + * @group framework */ public function testRouteMatching() : void { @@ -92,6 +96,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid routing verbs don't match even if the route matches * @covers phpOMS\Router\WebRouter + * @group framework */ public function testRouteMissMatchingForInvalidVerbs() : void { @@ -109,6 +114,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes can be added dynamically * @covers phpOMS\Router\WebRouter + * @group framework */ public function testDynamicRouteAdding() : void { @@ -149,6 +155,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes which require a CSRF token can only match with a CSRF token * @covers phpOMS\Router\WebRouter + * @group framework */ public function testWithCSRF() : void { @@ -168,6 +175,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes which require a CSRF token don't match without a CSRF token * @covers phpOMS\Router\WebRouter + * @group framework */ public function testWithoutCSRF() : void { @@ -186,6 +194,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes only match if the permissions match * @covers phpOMS\Router\WebRouter + * @group framework */ public function testWithValidPermissions() : void { @@ -221,6 +230,7 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase /** * @testdox Routes don't match if the permissions don't match * @covers phpOMS\Router\WebRouter + * @group framework */ public function testWithInvalidPermissions() : void { diff --git a/tests/Security/PhpCodeTest.php b/tests/Security/PhpCodeTest.php index 78b2eef45..8e6c37111 100644 --- a/tests/Security/PhpCodeTest.php +++ b/tests/Security/PhpCodeTest.php @@ -28,6 +28,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with unicode characters gets correctly identified * @covers phpOMS\Security\PhpCode + * @group framework */ public function testHasUnicode() : void { @@ -43,6 +44,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with no unicode characters gets correctly identified * @covers phpOMS\Security\PhpCode + * @group framework */ public function testHasNoUnicode() : void { @@ -58,6 +60,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with no disabled functions gets correctly identified * @covers phpOMS\Security\PhpCode + * @group framework */ public function testDisabledFunctions() : void { @@ -68,6 +71,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with deprecated functions gets correctly identified * @covers phpOMS\Security\PhpCode + * @group framework */ public function testHasDeprecatedFunction() : void { @@ -83,6 +87,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with no deprecated functions gets correctly identified * @covers phpOMS\Security\PhpCode + * @group framework */ public function testHasNoDeprecatedFunction() : void { @@ -98,6 +103,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file hash comparison is successfull if the file generates the same hash * @covers phpOMS\Security\PhpCode + * @group framework */ public function testFileIntegrity() : void { @@ -107,6 +113,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox A file hash comparison is unsuccessfull if the file generates a different hash * @covers phpOMS\Security\PhpCode + * @group framework */ public function testFileInvalidIntegrity() : void { @@ -116,6 +123,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox Two equal strings validate as the same * @covers phpOMS\Security\PhpCode + * @group framework */ public function testStringIntegrity() : void { @@ -125,6 +133,7 @@ class PhpCodeTest extends \PHPUnit\Framework\TestCase /** * @testdox Two different strings don't validate as the same * @covers phpOMS\Security\PhpCode + * @group framework */ public function testStringInvalidIntegrity() : void { diff --git a/tests/Stdlib/Base/AddressTest.php b/tests/Stdlib/Base/AddressTest.php index ca294cd74..c4206848d 100644 --- a/tests/Stdlib/Base/AddressTest.php +++ b/tests/Stdlib/Base/AddressTest.php @@ -34,6 +34,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The address has the expected attributes * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testAttributes() : void { @@ -45,6 +46,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The address has the expected default values after initialization * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testDefault() : void { @@ -74,6 +76,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The fao can be set and returned * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testFAOInputOutput() : void { @@ -84,6 +87,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The recepient can be set and returned * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testRecipientInputOutput() : void { @@ -94,6 +98,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The location can be set and returned * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testLocationInputOutput() : void { @@ -106,6 +111,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The address can be turned into array data * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testArray() : void { @@ -135,6 +141,7 @@ class AddressTest extends \PHPUnit\Framework\TestCase /** * @testdox The address can be json serialized * @covers phpOMS\Stdlib\Base\Address + * @group framework */ public function testJsonSerialize() : void { diff --git a/tests/Stdlib/Base/AddressTypeTest.php b/tests/Stdlib/Base/AddressTypeTest.php index ec0241968..971b2db04 100644 --- a/tests/Stdlib/Base/AddressTypeTest.php +++ b/tests/Stdlib/Base/AddressTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Base\AddressType; class AddressTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class AddressTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class AddressTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Stdlib/Base/EnumArrayTest.php b/tests/Stdlib/Base/EnumArrayTest.php index afe9e0f20..447d0978e 100644 --- a/tests/Stdlib/Base/EnumArrayTest.php +++ b/tests/Stdlib/Base/EnumArrayTest.php @@ -24,6 +24,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum name returns the enum value * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testValueOutput() : void { @@ -34,6 +35,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum name can be validated * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testValidateEnumName() : void { @@ -43,6 +45,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum name doesn't validate * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testInvalidEnumNameValidation() : void { @@ -52,6 +55,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox All enum name/value pairs can be returned * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testOutputValues() : void { @@ -61,6 +65,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum value can be checked for existance * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testValidateEnumValue() : void { @@ -71,6 +76,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum value doesn't validate * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testInvalidEnumValueValidation() : void { @@ -80,6 +86,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum name throws a OutOfBoundsException * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testInvalidConstantException() : void { @@ -91,6 +98,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of enum values can be returned * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testCount() : void { @@ -100,6 +108,7 @@ class EnumArrayTest extends \PHPUnit\Framework\TestCase /** * @testdox A random enum value can be returned * @covers phpOMS\Stdlib\Base\EnumArray + * @group framework */ public function testRandomValue() : void { diff --git a/tests/Stdlib/Base/EnumTest.php b/tests/Stdlib/Base/EnumTest.php index c9b66c2f7..2854be264 100644 --- a/tests/Stdlib/Base/EnumTest.php +++ b/tests/Stdlib/Base/EnumTest.php @@ -24,6 +24,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum name can be validated * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testValidateEnumName() : void { @@ -33,6 +34,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum name doesn't validate * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testInvalidEnumNameValidation() : void { @@ -42,6 +44,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox All enum name/value pairs can be returned * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testOutputValues() : void { @@ -51,6 +54,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum value can be checked for existance * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testValidateEnumValue() : void { @@ -61,6 +65,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum value doesn't validate * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testInvalidEnumValueValidation() : void { @@ -70,6 +75,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A random enum value can be returned * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testRandomValue() : void { @@ -79,6 +85,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum name returns the enum value * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testValueOutput() : void { @@ -89,6 +96,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of enum values can be returned * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testCount() : void { @@ -98,6 +106,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A valid enum value returns the enum name * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testNameOutput() : void { @@ -108,6 +117,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox Binary flags validate if they are set * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testFlags() : void { @@ -119,6 +129,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox Binary flags don't validate if they are not set * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testInvalidFlags() : void { @@ -129,6 +140,7 @@ class EnumTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid enum name throws a OutOfBoundsException * @covers phpOMS\Stdlib\Base\Enum + * @group framework */ public function testInvalidConstantException() : void { diff --git a/tests/Stdlib/Base/HeapTest.php b/tests/Stdlib/Base/HeapTest.php index c1a7d4c1f..131ff7968 100644 --- a/tests/Stdlib/Base/HeapTest.php +++ b/tests/Stdlib/Base/HeapTest.php @@ -26,6 +26,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements get correctly pushed to the heap * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testSize(): void { @@ -40,6 +41,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox Heap elements get returned in the correct order * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testPushAndPop() : void { @@ -62,6 +64,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox Heap elements get returned in the correct order by using a custom comparator * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testPushAndPopCustomComparator() : void { @@ -84,6 +87,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The heap can be turned into an array * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testArray() : void { @@ -98,6 +102,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox Heap elements can be replaced * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testReplace() : void { @@ -113,6 +118,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox A heap element can be returned while adding a new one * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testPushPop() : void { @@ -131,6 +137,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The heap can be checked if it contains certain elements * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testContains(): void { @@ -151,6 +158,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The first heap element can be returned without removing it * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testPeek() : void { @@ -169,6 +177,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The n smallest elements can be returned from the heap * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testNSmallest() : void { @@ -184,6 +193,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The n largest elements can be returned from the heap * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testNLargest(): void { @@ -200,6 +210,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The heap can be cleared of all elements * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testClear(): void { @@ -215,6 +226,7 @@ class HeapTest extends \PHPUnit\Framework\TestCase /** * @testdox The heap can be checked if it has elements * @covers phpOMS\Stdlib\Base\Heap + * @group framework */ public function testEmpty(): void { diff --git a/tests/Stdlib/Base/IbanTest.php b/tests/Stdlib/Base/IbanTest.php index 761ac0a06..ab5685f61 100644 --- a/tests/Stdlib/Base/IbanTest.php +++ b/tests/Stdlib/Base/IbanTest.php @@ -27,6 +27,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A iban can be correctly parsed into its different components * @covers phpOMS\Stdlib\Base\Iban + * @group framework */ public function testInputOutput() : void { @@ -51,6 +52,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A iban can be serialized and unserialized * @covers phpOMS\Stdlib\Base\Iban + * @group framework */ public function testSearialization() : void { @@ -67,6 +69,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid iban country code throws a InvalidArgumentException * @covers phpOMS\Stdlib\Base\Iban + * @group framework */ public function testInvalidIbanCountry() : void { @@ -78,6 +81,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid iban length throws a InvalidArgumentException * @covers phpOMS\Stdlib\Base\Iban + * @group framework */ public function testInvalidIbanLength() : void { @@ -89,6 +93,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid iban checksum throws a InvalidArgumentException * @covers phpOMS\Stdlib\Base\Iban + * @group framework */ public function testInvalidIbanChecksum() : void { diff --git a/tests/Stdlib/Base/LocationTest.php b/tests/Stdlib/Base/LocationTest.php index 70d0d460c..7b69a876a 100644 --- a/tests/Stdlib/Base/LocationTest.php +++ b/tests/Stdlib/Base/LocationTest.php @@ -34,6 +34,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The location has the expected attributes * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testAttributes() : void { @@ -48,6 +49,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The location has the expected default values after initialization * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testDefault() : void { @@ -78,6 +80,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The postal can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testPostalInputOutput() : void { @@ -88,6 +91,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The type can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testTypeInputOutput() : void { @@ -98,6 +102,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The city can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testCityInputOutput() : void { @@ -108,6 +113,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The country can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testCountryInputOutput() : void { @@ -118,6 +124,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The address can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testAddressInputOutput() : void { @@ -128,6 +135,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The state can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testStateInputOutput() : void { @@ -138,6 +146,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The geo location can be set and returned * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testGeoInputOutput() : void { @@ -148,6 +157,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The location can be turned into an array * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testArray() : void { @@ -177,6 +187,7 @@ class LocationTest extends \PHPUnit\Framework\TestCase /** * @testdox The location can be json serialized * @covers phpOMS\Stdlib\Base\Location + * @group framework */ public function testJsonSerialize() : void { diff --git a/tests/Stdlib/Base/PhoneTypeTest.php b/tests/Stdlib/Base/PhoneTypeTest.php index edcc86297..1500d8f9d 100644 --- a/tests/Stdlib/Base/PhoneTypeTest.php +++ b/tests/Stdlib/Base/PhoneTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Base\PhoneType; class PhoneTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class PhoneTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class PhoneTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Stdlib/Base/SmartDateTimeTest.php b/tests/Stdlib/Base/SmartDateTimeTest.php index adfb0fb71..6ef8a83bc 100644 --- a/tests/Stdlib/Base/SmartDateTimeTest.php +++ b/tests/Stdlib/Base/SmartDateTimeTest.php @@ -26,6 +26,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The smart datetime extends the datetime * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testAttributes() : void { @@ -36,6 +37,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The smart datetime can be formatted like the datetime * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testFormat() : void { @@ -46,6 +48,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The smart datetime can be modified an creates a new smart datetime * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testCreateModify() : void { @@ -68,6 +71,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The days of the month can be returned * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testDaysOfMonth() : void { @@ -78,6 +82,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The week day index of the first day of the month can be returned * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testFirstDayOfMonth() : void { @@ -88,6 +93,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A smart datetime can be created from a datetime * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testCreateFromDateTime() : void { @@ -99,6 +105,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A smart datetime can be returned of the last day of the month * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testEndOfMonth() : void { @@ -111,6 +118,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A smart datetime can be returned of the fist day of the month * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testStartOfMonth() : void { @@ -123,6 +131,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A date or year can be checked if it is a leap year * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testLeapYear() : void { @@ -135,6 +144,7 @@ class SmartDateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox The day of the week index can be retruned from a date * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testDayOfWeek() : void { @@ -148,6 +158,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 * @covers phpOMS\Stdlib\Base\SmartDateTime + * @group framework */ public function testCalendarSheet() : void { diff --git a/tests/Stdlib/Map/KeyTypeTest.php b/tests/Stdlib/Map/KeyTypeTest.php index b35b19247..908596646 100644 --- a/tests/Stdlib/Map/KeyTypeTest.php +++ b/tests/Stdlib/Map/KeyTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Map\KeyType; class KeyTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class KeyTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class KeyTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Stdlib/Map/MultiMapTest.php b/tests/Stdlib/Map/MultiMapTest.php index 601e541b3..2fc19226c 100644 --- a/tests/Stdlib/Map/MultiMapTest.php +++ b/tests/Stdlib/Map/MultiMapTest.php @@ -28,6 +28,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox The map has the expected default values and functionality after initialization * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testDefault() : void { @@ -48,6 +49,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple optional keys can be added * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicAddAny() : void { @@ -61,6 +63,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple optional keys can be returned if any of the keys matches * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicGetAny() : void { @@ -74,6 +77,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements can be forcefully overwritten * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testOverwriteAny() : void { @@ -91,6 +95,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox By default elements are not overwritten * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidOverwriteSubkeyAny() : void { @@ -108,6 +113,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a element with partially matching keys is already in the map it will be only added for the new key * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testOverwriteCreateAny() : void { @@ -126,6 +132,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If all keys exist in the map no new element will be created * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidOverwriteAny() : void { @@ -144,6 +151,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values can be set/replaced by key * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSetByKeyAny() : void { @@ -163,6 +171,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values cannot be set/replaced if the key doesn't exist * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidSetByKeyAny() : void { @@ -179,6 +188,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox A key cannot be remapped to a none-existing key * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidRemapNewAny() : void { @@ -195,6 +205,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox A key can be remapped to the value of an existing key * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemapAny() : void { @@ -214,6 +225,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If no more keys are associated with a value after a remap the value is removed from the map * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemapUnmapAny() : void { @@ -233,6 +245,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox All keys of the map can be returned * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testMapKeysAny() : void { @@ -251,6 +264,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox All values of the map can be returned * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testMapValuesAny() : void { @@ -269,6 +283,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Sibling keys can be found * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSiblingsAny() : void { @@ -283,6 +298,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a key doesn't exist or has no siblings no siblings are returned * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidSiblingsAny() : void { @@ -297,6 +313,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox A key for a value can be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemoveAny() : void { @@ -314,6 +331,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If the last key of a value is removed the value is also removed from the map * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemoveLastAny() : void { @@ -333,6 +351,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a key doesn't exist it cannot be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidRemoveAny() : void { @@ -348,6 +367,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required keys can be added * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicAddExact() : void { @@ -361,6 +381,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required keys can be returned if all match * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicGetExact() : void { @@ -374,6 +395,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required keys cannot be returned if they don't match exactly * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicInvalidGetExact() : void { @@ -386,6 +408,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required and ordered keys can be added * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicAddExactOrdered() : void { @@ -399,6 +422,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required ordered keys can be if all match in the correct order * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicGetExactOrdered() : void { @@ -411,6 +435,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required keys cannot be returned if they don't match exactly in the correct order * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testBasicInvalidOrderedGetExact() : void { @@ -423,6 +448,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required keys can be forcefully overwritten * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testOverwriteExact() : void { @@ -438,6 +464,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Elements with multiple required ordered keys can be forcefully overwritten * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testOverwriteExactOrdered() : void { @@ -453,6 +480,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox An element cannot be added to for multiple required keys if the keys already exist in a different order * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidAddDifferentOrderExact() : void { @@ -469,6 +497,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a element with partially matching multiple keys is already in the map it will be only added for the new key * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testOverwriteCreateExact() : void { @@ -487,6 +516,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Adding differently ordered keys for multiple required keys will create a new entry in the map * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testAddDifferentlyOrderedKeys() : void { @@ -503,6 +533,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If all keys for multiple required keys exist in the map no new element will be created * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidOverwriteExact() : void { @@ -520,6 +551,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If all keys for multiple required ordered keys exist in the map no new element will be created * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidOverwriteExactOrdered() : void { @@ -537,6 +569,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values can be set/replaced by multiple required keys * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSetByKeyExact() : void { @@ -556,6 +589,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values cannot be set/replaced if the multiple required keys don't match or exist * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidSetByKeyExact() : void { @@ -575,6 +609,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values can be set/replaced by multiple required ordered keys if the order is correct * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSetByKeyExactOrdered() : void { @@ -592,6 +627,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Values cannot be set/replaced if the multiple required ordered keys don't match or exist in the correct order * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidSetByKeyExactOrdered() : void { @@ -608,6 +644,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox Multiple keys cannot be remapped * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidRemapExact() : void { @@ -622,6 +659,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox All sibling key combinations can be found for multiple required keys * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSiblingsExact() : void { @@ -634,6 +672,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox For multiple required ordered keys don't exist any siblings * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testSiblingsExactOrdered() : void { @@ -646,6 +685,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox A multiple required key combination for a value can be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemoveExact() : void { @@ -663,6 +703,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a multiple required key combination doesn't exist it cannot be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidRemoveExact() : void { @@ -681,6 +722,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox A multiple required ordered key combination for a value can be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testRemoveExactOrdered() : void { @@ -698,6 +740,7 @@ class MultiMapTest extends \PHPUnit\Framework\TestCase /** * @testdox If a multiple required ordered key combination doesn't exist it cannot be removed * @covers phpOMS\Stdlib\Map\MultiMap + * @group framework */ public function testInvalidRemoveExactOrdered() : void { diff --git a/tests/Stdlib/Map/OrderTypeTest.php b/tests/Stdlib/Map/OrderTypeTest.php index e27cdc57c..96fdacd10 100644 --- a/tests/Stdlib/Map/OrderTypeTest.php +++ b/tests/Stdlib/Map/OrderTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Map\OrderType; class OrderTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class OrderTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class OrderTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Stdlib/Queue/PriorityModeTest.php b/tests/Stdlib/Queue/PriorityModeTest.php index bd97c4ff3..6b2e6635f 100644 --- a/tests/Stdlib/Queue/PriorityModeTest.php +++ b/tests/Stdlib/Queue/PriorityModeTest.php @@ -22,6 +22,7 @@ use phpOMS\Stdlib\Queue\PriorityMode; class PriorityModeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class PriorityModeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class PriorityModeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Stdlib/Queue/PriorityQueueTest.php b/tests/Stdlib/Queue/PriorityQueueTest.php index 153d0da8f..95a9bdfbf 100644 --- a/tests/Stdlib/Queue/PriorityQueueTest.php +++ b/tests/Stdlib/Queue/PriorityQueueTest.php @@ -27,6 +27,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox The queue has the expected default values and functionality after initialization * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testDefault() : void { @@ -41,6 +42,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox Queue elements can be added with the default value of 1.0 and returned * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testInputOutput() : void { @@ -53,6 +55,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox Queue elements can be added with a priority * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testAddWithPriority() : void { @@ -68,6 +71,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox The priority queue returns the correct amount of elements it holds * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testCount() : void { @@ -82,6 +86,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A queue element can be removed * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testRemove() : void { @@ -98,6 +103,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing queue element id cannot be removed * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testInvalidRemove() : void { @@ -115,6 +121,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A removed or none-existing queue element returns a empty data * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testInvalidGet() : void { @@ -129,6 +136,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox The priority of all queue elements can be uniformly increased * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testPriorityIncreaseAll() : void { @@ -150,6 +158,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox The priority or a queue element can be changed * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testPriorityChange() : void { @@ -164,6 +173,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox The queue can be serialized and unserialized * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testSerialize() : void { @@ -182,6 +192,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A queue element can be popped from the que which also removes it from the queue * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testPop() : void { @@ -197,6 +208,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A FIFO queue returns the elements in FIFO order * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testFIFO() : void { @@ -214,6 +226,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A LIFO queue returns the elements in LIFO order * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testLIFO() : void { @@ -231,6 +244,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A highest queue returns the elements in highest priority order * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testHighest() : void { @@ -248,6 +262,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A lowest queue returns the elements in lowest priority order * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testLowest() : void { @@ -265,6 +280,7 @@ class PriorityQueueTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid priority queue type throws a InvalidEnumValue * @covers phpOMS\Stdlib\Queue\PriorityQueue + * @group framework */ public function testInvalidPriority() : void { diff --git a/tests/System/File/ContentPutModeTest.php b/tests/System/File/ContentPutModeTest.php index 4beaee03d..032a8c450 100644 --- a/tests/System/File/ContentPutModeTest.php +++ b/tests/System/File/ContentPutModeTest.php @@ -22,6 +22,7 @@ use phpOMS\System\File\ContentPutMode; class ContentPutModeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class ContentPutModeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class ContentPutModeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/System/File/ExtensionTypeTest.php b/tests/System/File/ExtensionTypeTest.php index 12fa988ac..951aa1d37 100644 --- a/tests/System/File/ExtensionTypeTest.php +++ b/tests/System/File/ExtensionTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\System\File\ExtensionType; class ExtensionTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class ExtensionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class ExtensionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/System/File/FileUtilsTest.php b/tests/System/File/FileUtilsTest.php index 90fac55ae..8cdb1baab 100644 --- a/tests/System/File/FileUtilsTest.php +++ b/tests/System/File/FileUtilsTest.php @@ -27,6 +27,7 @@ class FileUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox File extensions can be categorized * @covers phpOMS\System\File\FileUtils + * @group framework */ public function testExtension() : void { @@ -49,6 +50,7 @@ class FileUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A relative path can be turned into an absolute path * @covers phpOMS\System\File\FileUtils + * @group framework */ public function testAbsolute() : void { @@ -58,6 +60,7 @@ class FileUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Permissions can be turned into ocal values * @covers phpOMS\System\File\FileUtils + * @group framework */ public function testPermissionToOctal() : void { diff --git a/tests/System/File/Ftp/DirectoryTest.php b/tests/System/File/Ftp/DirectoryTest.php index 16c4bce6f..56095bbff 100644 --- a/tests/System/File/Ftp/DirectoryTest.php +++ b/tests/System/File/Ftp/DirectoryTest.php @@ -44,6 +44,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be created * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCreate() : void { @@ -57,6 +58,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be checked for existence * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticExists() : void { @@ -67,6 +69,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox An existing directory cannot be overwritten * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticOverwrite() : void { @@ -80,6 +83,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be forced to be created recursively * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticSubdir() : void { @@ -95,6 +99,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox By default a directory is not created recursively * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticSubdir() : void { @@ -104,6 +109,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a directory is just its name without its path * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticName() : void { @@ -115,6 +121,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename is the same as the name of the directory * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticBasename() : void { @@ -126,6 +133,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The dirname is the same as the name of the directory * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticDirname() : void { @@ -137,6 +145,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent of a directory can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticParent() : void { @@ -148,6 +157,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The full absolute path of a directory can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticDirectoryPath() : void { @@ -159,6 +169,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticCreatedAt() : void { @@ -176,6 +187,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticChangedAt() : void { @@ -194,6 +206,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be deleted * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticDelete() : void { @@ -207,6 +220,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory cannot be deleted * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticDelete() : void { @@ -218,6 +232,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a directory can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticSizeRecursive() : void { @@ -228,6 +243,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing directory is negative * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticSizeRecursive() : void { @@ -238,6 +254,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The recursive size of a directory is equals or greater than the size of the same directory none-recursive * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticSize() : void { @@ -248,6 +265,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a directory can be returned * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticPermission() : void { @@ -258,6 +276,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing directory is negative * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticPermission() : void { @@ -268,6 +287,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be copied recursively * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticCopy() : void { @@ -281,6 +301,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be moved/renamed to a different path * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticMove() : void { @@ -295,6 +316,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned recursively * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticCountRecursive() : void { @@ -305,6 +327,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned none-recursively * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticCount() : void { @@ -315,6 +338,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files of a none-existing directory is negative * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidStaticCount() : void { @@ -325,6 +349,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox All files and sub-directories of a directory can be listed * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testStaticListFiles() : void { @@ -335,6 +360,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory returns a empty list of files and sub-directories * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidListPath() : void { @@ -344,6 +370,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be copied to a new destination * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidCopyPath() : void { @@ -353,6 +380,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be moved to a new destination * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidMovePath() : void { @@ -362,6 +390,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the creation date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidCreatedPath() : void { @@ -373,6 +402,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidChangedPath() : void { @@ -384,6 +414,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing directory throws a PathException * @covers phpOMS\System\File\Ftp\Directory + * @group framework */ public function testInvalidOwnerPath() : void { diff --git a/tests/System/File/Ftp/FileTest.php b/tests/System/File/Ftp/FileTest.php index 82396aff1..ba17f99fc 100644 --- a/tests/System/File/Ftp/FileTest.php +++ b/tests/System/File/Ftp/FileTest.php @@ -46,6 +46,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file without content can be created * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticCreate() : void { @@ -60,6 +61,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be created if it already exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticCreate() : void { @@ -74,6 +76,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with content can be created * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticPut() : void { @@ -88,6 +91,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be replaced if it doesn't exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticCreateReplace() : void { @@ -99,6 +103,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be appended if it doesn't exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticCreateAppend() : void { @@ -110,6 +115,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be prepended if it doesn't exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticCreatePrepend() : void { @@ -121,6 +127,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be checked for existence * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticExists() : void { @@ -131,6 +138,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be replaced with a new one * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticReplace() : void { @@ -146,6 +154,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The set alias works like the replace flag * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticSetAlias() : void { @@ -162,6 +171,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticAppend() : void { @@ -177,6 +187,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The append alias works like the append flag * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticAppendAlias() : void { @@ -192,6 +203,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be prepended with additional content * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticPrepend() : void { @@ -207,6 +219,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The prepend alias works like the prepend flag * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticPrependAlias() : void { @@ -222,6 +235,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The content of a file can be read * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticGet() : void { @@ -235,6 +249,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent directory of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticParent() : void { @@ -246,6 +261,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The extension of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticExtension() : void { @@ -257,6 +273,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticName() : void { @@ -268,6 +285,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticBaseName() : void { @@ -279,6 +297,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The file name of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticDirname() : void { @@ -290,6 +309,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The file path of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticDirectoryPath() : void { @@ -301,6 +321,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The count of a file is always 1 * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticCount() : void { @@ -312,6 +333,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticCreatedAt() : void { @@ -327,6 +349,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticChangedAt() : void { @@ -342,6 +365,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be deleted * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticDelete() : void { @@ -355,6 +379,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be deleted * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticDelete() : void { @@ -366,6 +391,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticSize() : void { @@ -380,6 +406,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a file can be returned * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticPermission() : void { @@ -394,6 +421,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing file is negative * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticPermission() : void { @@ -404,6 +432,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be copied to a different location * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticCopy() : void { @@ -426,6 +455,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be copied to a different location if the destination already exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticCopy() : void { @@ -445,6 +475,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be copied to a different location even if the destination already exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticCopyOverwrite() : void { @@ -464,6 +495,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be moved to a different location * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticMove() : void { @@ -483,6 +515,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be moved to a different location if the destination already exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidStaticMove() : void { @@ -503,6 +536,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be moved to a different location even if the destination already exists * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testStaticMoveOverwrite() : void { @@ -522,6 +556,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing file is negative * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidSizePath() : void { @@ -531,6 +566,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be copied * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidCopyPath() : void { @@ -540,6 +576,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be moved * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidMovePath() : void { @@ -549,6 +586,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the content of a none-existing file throws a PathException * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidGetPath() : void { @@ -560,6 +598,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the created date of a none-existing file throws a PathException * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidCreatedPath() : void { @@ -571,6 +610,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing file throws a PathException * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidChangedPath() : void { @@ -582,6 +622,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing file throws a PathException * @covers phpOMS\System\File\Ftp\File + * @group framework */ public function testInvalidOwnerPath() : void { diff --git a/tests/System/File/Local/DirectoryTest.php b/tests/System/File/Local/DirectoryTest.php index e31f5dbc1..22b821dba 100644 --- a/tests/System/File/Local/DirectoryTest.php +++ b/tests/System/File/Local/DirectoryTest.php @@ -26,6 +26,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be created * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCreate() : void { @@ -39,6 +40,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be checked for existence * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticExists() : void { @@ -49,6 +51,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox An existing directory cannot be overwritten * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticOverwrite() : void { @@ -62,6 +65,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be forced to be created recursively * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticSubdir() : void { @@ -77,6 +81,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox By default a directory is not created recursively * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticSubdir() : void { @@ -86,6 +91,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a directory is just its name without its path * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticName() : void { @@ -97,6 +103,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename is the same as the name of the directory * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticBasename() : void { @@ -108,6 +115,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The dirname is the same as the name of the directory * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticDirname() : void { @@ -119,6 +127,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent of a directory can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticParent() : void { @@ -130,6 +139,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The full absolute path of a directory can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticDirectoryPath() : void { @@ -141,6 +151,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCreatedAt() : void { @@ -157,6 +168,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticChangedAt() : void { @@ -173,6 +185,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be deleted * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticDelete() : void { @@ -186,6 +199,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory cannot be deleted * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticDelete() : void { @@ -197,6 +211,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a directory can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticSizeRecursive() : void { @@ -207,6 +222,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing directory is negative * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticSizeRecursive() : void { @@ -217,6 +233,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The recursive size of a directory is equals or greater than the size of the same directory none-recursive * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticSize() : void { @@ -227,6 +244,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a directory can be returned * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticPermission() : void { @@ -237,6 +255,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing directory is negative * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticPermission() : void { @@ -247,6 +266,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be copied recursively * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCopy() : void { @@ -260,6 +280,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be moved/renamed to a different path * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticMove() : void { @@ -274,6 +295,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned recursively * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCountRecursive() : void { @@ -284,6 +306,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned none-recursively * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticCount() : void { @@ -294,6 +317,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files of a none-existing directory is negative * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidStaticCount() : void { @@ -304,6 +328,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox All files and sub-directories of a directory can be listed * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticListFiles() : void { @@ -314,6 +339,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox All files of a directory can be listed by file extension * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testStaticListFilesByExtension() : void { @@ -324,6 +350,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory returns a empty list of files and sub-directories * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidListPath() : void { @@ -333,6 +360,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory returns a empty list of files for the extension * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidListFilesByExtension() : void { @@ -342,6 +370,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be copied to a new destination * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidCopyPath() : void { @@ -351,6 +380,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be moved to a new destination * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidMovePath() : void { @@ -360,6 +390,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the creation date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidCreatedPath() : void { @@ -371,6 +402,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidChangedPath() : void { @@ -382,6 +414,7 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\Directory + * @group framework */ public function testInvalidOwnerPath() : void { diff --git a/tests/System/File/Local/FileTest.php b/tests/System/File/Local/FileTest.php index 4e9d4dac9..a5aea6323 100644 --- a/tests/System/File/Local/FileTest.php +++ b/tests/System/File/Local/FileTest.php @@ -27,6 +27,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file without content can be created * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticCreate() : void { @@ -41,6 +42,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be created if it already exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticCreate() : void { @@ -55,6 +57,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with content can be created * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticPut() : void { @@ -69,6 +72,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be replaced if it doesn't exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticCreateReplace() : void { @@ -80,6 +84,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be appended if it doesn't exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticCreateAppend() : void { @@ -91,6 +96,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be prepended if it doesn't exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticCreatePrepend() : void { @@ -102,6 +108,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be checked for existence * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticExists() : void { @@ -112,6 +119,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be replaced with a new one * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticReplace() : void { @@ -127,6 +135,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The set alias works like the replace flag * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticSetAlias() : void { @@ -143,6 +152,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticAppend() : void { @@ -158,6 +168,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The append alias works like the append flag * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticAppendAlias() : void { @@ -173,6 +184,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be prepended with additional content * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticPrepend() : void { @@ -188,6 +200,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The prepend alias works like the prepend flag * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticPrependAlias() : void { @@ -203,6 +216,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The content of a file can be read * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticGet() : void { @@ -216,6 +230,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent directory of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticParent() : void { @@ -227,6 +242,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The extension of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticExtension() : void { @@ -238,6 +254,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticName() : void { @@ -249,6 +266,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticBaseName() : void { @@ -260,6 +278,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The file name of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticDirname() : void { @@ -271,6 +290,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The file path of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticDirectoryPath() : void { @@ -282,6 +302,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The count of a file is always 1 * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticCount() : void { @@ -293,6 +314,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticCreatedAt() : void { @@ -308,6 +330,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticChangedAt() : void { @@ -323,6 +346,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be deleted * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticDelete() : void { @@ -336,6 +360,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be deleted * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticDelete() : void { @@ -347,6 +372,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticSize() : void { @@ -361,6 +387,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a file can be returned * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticPermission() : void { @@ -375,6 +402,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing file is negative * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticPermission() : void { @@ -385,6 +413,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be copied to a different location * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticCopy() : void { @@ -407,6 +436,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be copied to a different location if the destination already exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticCopy() : void { @@ -426,6 +456,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be copied to a different location even if the destination already exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticCopyOverwrite() : void { @@ -445,6 +476,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be moved to a different location * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticMove() : void { @@ -466,6 +498,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be moved to a different location if the destination already exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidStaticMove() : void { @@ -486,6 +519,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be moved to a different location even if the destination already exists * @covers phpOMS\System\File\Local\File + * @group framework */ public function testStaticMoveOverwrite() : void { @@ -505,6 +539,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing file is negative * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidSizePath() : void { @@ -514,6 +549,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be copied * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidCopyPath() : void { @@ -523,6 +559,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be moved * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidMovePath() : void { @@ -532,6 +569,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the content of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidGetPath() : void { @@ -543,6 +581,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the created date of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidCreatedPath() : void { @@ -554,6 +593,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidChangedPath() : void { @@ -565,6 +605,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\File + * @group framework */ public function testInvalidOwnerPath() : void { diff --git a/tests/System/File/Local/LocalStorageTest.php b/tests/System/File/Local/LocalStorageTest.php index 8405af692..e9d020430 100644 --- a/tests/System/File/Local/LocalStorageTest.php +++ b/tests/System/File/Local/LocalStorageTest.php @@ -27,6 +27,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be created * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCreateDirectory() : void { @@ -40,6 +41,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be checked for existence * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticExistsDirectory() : void { @@ -50,6 +52,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox An existing directory cannot be overwritten * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticOverwriteDirectory() : void { @@ -63,6 +66,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be forced to be created recursively * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticSubdirDirectory() : void { @@ -78,6 +82,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a directory is just its name without its path * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticNameDirectory() : void { @@ -89,6 +94,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename is the same as the name of the directory * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticBasenameDirectory() : void { @@ -100,6 +106,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The dirname is the same as the name of the directory * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDirnameDirectory() : void { @@ -111,6 +118,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent of a directory can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticParentDirectory() : void { @@ -122,6 +130,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The full absolute path of a directory can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDirectoryPathDirectory() : void { @@ -133,6 +142,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCreatedAtDirectory() : void { @@ -149,6 +159,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticChangedAtDirectory() : void { @@ -165,6 +176,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be deleted * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDeleteDirectory() : void { @@ -178,6 +190,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory cannot be deleted * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticDeleteDirectory() : void { @@ -189,6 +202,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a directory can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticSizeRecursiveDirectory() : void { @@ -199,6 +213,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing directory is negative * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticSizeRecursiveDirectory() : void { @@ -209,6 +224,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The recursive size of a directory is equals or greater than the size of the same directory none-recursive * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticSizeDirectory() : void { @@ -219,6 +235,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a directory can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticPermissionDirectory() : void { @@ -229,6 +246,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing directory is negative * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticPermissionDirectory() : void { @@ -239,6 +257,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be copied recursively * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCopyDirectory() : void { @@ -252,6 +271,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A directory can be moved/renamed to a different path * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticMoveDirectory() : void { @@ -266,6 +286,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned recursively * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCountRecursiveDirectory() : void { @@ -276,6 +297,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files in a directory can be returned none-recursively * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCountDirectory() : void { @@ -286,6 +308,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of files of a none-existing directory is negative * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCountDirectory() : void { @@ -296,6 +319,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox All files and sub-directories of a directory can be listed * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticListFilesDirectory() : void { @@ -306,6 +330,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing directory returns a empty list of files and sub-directories * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidListPathDirectory() : void { @@ -315,6 +340,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be copied to a new destination * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidCopyPathDirectory() : void { @@ -324,6 +350,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid directory cannot be moved to a new destination * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidMovePathDirectory() : void { @@ -333,6 +360,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the creation date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidCreatedPathDirectory() : void { @@ -344,6 +372,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidChangedPathDirectory() : void { @@ -355,6 +384,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidOwnerPathDirectory() : void { @@ -366,6 +396,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file without content can be created * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCreateFile() : void { @@ -380,6 +411,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be created if it already exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCreateFile() : void { @@ -394,6 +426,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file with content can be created * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticPutFile() : void { @@ -408,6 +441,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be replaced if it doesn't exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCreateReplaceFile() : void { @@ -419,6 +453,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be appended if it doesn't exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCreateAppendFile() : void { @@ -430,6 +465,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be prepended if it doesn't exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCreatePrependFile() : void { @@ -441,6 +477,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be checked for existence * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticExistsFile() : void { @@ -451,6 +488,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be replaced with a new one * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticReplaceFile() : void { @@ -466,6 +504,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The set alias works like the replace flag * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticSetAliasFile() : void { @@ -482,6 +521,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be appended with additional content * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticAppendFile() : void { @@ -497,6 +537,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The append alias works like the append flag * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticAppendAliasFile() : void { @@ -512,6 +553,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be prepended with additional content * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticPrependFile() : void { @@ -527,6 +569,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The prepend alias works like the prepend flag * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticPrependAliasFile() : void { @@ -542,6 +585,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The content of a file can be read * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticGetFile() : void { @@ -555,6 +599,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The parent directory of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticParentFile() : void { @@ -566,6 +611,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The extension of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticExtensionFile() : void { @@ -577,6 +623,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The name of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticNameFile() : void { @@ -588,6 +635,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The basename of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticBaseNameFile() : void { @@ -599,6 +647,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The file name of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDirnameFile() : void { @@ -610,6 +659,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The file path of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDirectoryPathFile() : void { @@ -621,6 +671,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The count of a file is always 1 * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCountFile() : void { @@ -632,6 +683,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories creation date can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCreatedAtFile() : void { @@ -647,6 +699,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The directories last change date can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticChangedAtFile() : void { @@ -662,6 +715,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be deleted * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticDeleteFile() : void { @@ -675,6 +729,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be deleted * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticDeleteFile() : void { @@ -686,6 +741,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticSizeFile() : void { @@ -700,6 +756,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a file can be returned * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticPermissionFile() : void { @@ -714,6 +771,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The permission of a none-existing file is negative * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticPermissionFile() : void { @@ -724,6 +782,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be copied to a different location * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCopyFile() : void { @@ -746,6 +805,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be copied to a different location if the destination already exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticCopyFile() : void { @@ -765,6 +825,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be copied to a different location even if the destination already exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticCopyOverwriteFile() : void { @@ -784,6 +845,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be moved to a different location * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticMoveFile() : void { @@ -805,6 +867,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file cannot be moved to a different location if the destination already exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidStaticMoveFile() : void { @@ -825,6 +888,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be forced to be moved to a different location even if the destination already exists * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testStaticMoveOverwriteFile() : void { @@ -844,6 +908,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The size of a none-existing file is negative * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidSizePathFile() : void { @@ -853,6 +918,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be copied * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidCopyPathFile() : void { @@ -862,6 +928,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be moved * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidMovePathFile() : void { @@ -871,6 +938,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the content of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidGetPathFile() : void { @@ -882,6 +950,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the created date of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidCreatedPathFile() : void { @@ -893,6 +962,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the last change date of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidChangedPathFile() : void { @@ -904,6 +974,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the owner of a none-existing file throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidOwnerPathFile() : void { @@ -915,6 +986,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Writing data to a destination which looks like a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidPutPath() : void { @@ -926,6 +998,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading data from a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidGetPath() : void { @@ -937,6 +1010,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Trying to run list on a file throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidListPath() : void { @@ -948,6 +1022,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Setting data to a destination which looks like a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidSetPath() : void { @@ -959,6 +1034,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Appending data to a destination which looks like a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidAppendPath() : void { @@ -970,6 +1046,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Prepending data to a destination which looks like a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidPrependPath() : void { @@ -981,6 +1058,7 @@ class LocalStorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Reading the extension of a destination which looks like a directory throws a PathException * @covers phpOMS\System\File\Local\LocalStorage + * @group framework */ public function testInvalidExtensionPath() : void { diff --git a/tests/System/File/StorageTest.php b/tests/System/File/StorageTest.php index d322ca615..fb2c8a9ab 100644 --- a/tests/System/File/StorageTest.php +++ b/tests/System/File/StorageTest.php @@ -27,6 +27,7 @@ class StorageTest extends \PHPUnit\Framework\TestCase /** * @testdox By default the local storage handler is returned * @covers phpOMS\System\File\Storage + * @group framework */ public function testStorageDefault() : void { @@ -36,6 +37,7 @@ class StorageTest extends \PHPUnit\Framework\TestCase /** * @testdox The pre-defined storage handlers can be returned by their name * @covers phpOMS\System\File\Storage + * @group framework */ public function testStoragePreDefined() : void { @@ -46,6 +48,7 @@ class StorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Storages can be registered and returned * @covers phpOMS\System\File\Storage + * @group framework */ public function testInputOutput() : void { @@ -58,6 +61,7 @@ class StorageTest extends \PHPUnit\Framework\TestCase /** * @testdox Registered storage handlers cannot be overwritten * @covers phpOMS\System\File\Storage + * @group framework */ public function testInvalidRegister() : void { @@ -68,6 +72,7 @@ class StorageTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid or none-existing storage throws a Exception * @covers phpOMS\System\File\Storage + * @group framework */ public function testInvalidStorage() : void { diff --git a/tests/System/MimeTypeTest.php b/tests/System/MimeTypeTest.php index 765915b5d..c84217925 100644 --- a/tests/System/MimeTypeTest.php +++ b/tests/System/MimeTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\System\MimeType; class MimeTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/System/SystemTypeTest.php b/tests/System/SystemTypeTest.php index 5dc7828cd..2da23d683 100644 --- a/tests/System/SystemTypeTest.php +++ b/tests/System/SystemTypeTest.php @@ -24,6 +24,7 @@ use phpOMS\System\SystemType; class SystemTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -32,6 +33,7 @@ class SystemTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -40,6 +42,7 @@ class SystemTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/System/SystemUtilsTest.php b/tests/System/SystemUtilsTest.php index 6affa43da..40a9bc6cb 100644 --- a/tests/System/SystemUtilsTest.php +++ b/tests/System/SystemUtilsTest.php @@ -28,6 +28,7 @@ class SystemUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Test if it is possible to get information about the available RAM and usage * @covers phpOMS\System\SystemUtils + * @group framework */ public function testRAM() : void { @@ -45,6 +46,7 @@ class SystemUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Test if it is possible to get information about the CPU usage * @covers phpOMS\System\SystemUtils + * @group framework */ public function testCPUUsage() : void { diff --git a/tests/Uri/ArgumentTest.php b/tests/Uri/ArgumentTest.php index 5a93ccd2e..87def224a 100644 --- a/tests/Uri/ArgumentTest.php +++ b/tests/Uri/ArgumentTest.php @@ -29,6 +29,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox A uri can be validated * @covers phpOMS\Uri\Argument + * @group framework */ public function testValidator() : void { @@ -42,6 +43,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The argument uri has the expected default values after initialization * @covers phpOMS\Uri\Argument + * @group framework */ public function testDefault() : void { @@ -62,6 +64,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The path can be parsed correctly from a uri * @covers phpOMS\Uri\Argument + * @group framework */ public function testPathInputOutput() : void { @@ -74,6 +77,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The route can be parsed correctly from a uri * @covers phpOMS\Uri\Argument + * @group framework */ public function testRouteInputOutput() : void { @@ -85,6 +89,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The query data can be parsed correctly from a uri * @covers phpOMS\Uri\Argument + * @group framework */ public function testQueryInputOutput() : void { @@ -99,6 +104,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The fragment can be parsed correctly from a uri * @covers phpOMS\Uri\Argument + * @group framework */ public function testFragmentInputOutput() : void { @@ -110,6 +116,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The uri can be turned into a string * @covers phpOMS\Uri\Argument + * @group framework */ public function testStringify() : void { @@ -121,6 +128,7 @@ class ArgumentTest extends \PHPUnit\Framework\TestCase /** * @testdox The root path can be set and returned * @covers phpOMS\Uri\Argument + * @group framework */ public function testRootPathInputOutput() : void { diff --git a/tests/Uri/HttpTest.php b/tests/Uri/HttpTest.php index 9df316c9e..b82369369 100644 --- a/tests/Uri/HttpTest.php +++ b/tests/Uri/HttpTest.php @@ -28,6 +28,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox A url can be validated * @covers phpOMS\Uri\Http + * @group framework */ public function testValidator() : void { @@ -40,6 +41,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The http url has the expected default values after initialization * @covers phpOMS\Uri\Http + * @group framework */ public function testDefault() : void { @@ -56,6 +58,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The url schema can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testSchemaInputOutput() : void { @@ -67,6 +70,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The host can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testHostInputOutput() : void { @@ -78,6 +82,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The username can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testUsernameInputOutput() : void { @@ -89,6 +94,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The password can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testPasswordInputOutput() : void { @@ -100,6 +106,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The base can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testBaseInputOutput() : void { @@ -111,6 +118,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The url can be turned into a string * @covers phpOMS\Uri\Http + * @group framework */ public function testStringify() : void { @@ -122,6 +130,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The authority can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testAuthorityInputOutput() : void { @@ -133,6 +142,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The user info can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testUserinfoInputOutput() : void { @@ -144,6 +154,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The root path can be set and returned * @covers phpOMS\Uri\Http + * @group framework */ public function testRootPathInputOutput() : void { @@ -156,6 +167,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The path offset can be set and returned * @covers phpOMS\Uri\Http + * @group framework */ public function testPathOffsetInputOutput() : void { @@ -168,6 +180,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The subdomain can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testSubdmonain() : void { @@ -184,6 +197,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The query data can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testQueryData() : void { @@ -196,6 +210,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The fragment data can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testFragment() : void { @@ -206,6 +221,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The path data can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testPathData() : void { @@ -218,6 +234,7 @@ class HttpTest extends \PHPUnit\Framework\TestCase /** * @testdox The route can be parsed correctly from a url * @covers phpOMS\Uri\Http + * @group framework */ public function testRouteInputOutput() : void { diff --git a/tests/Uri/UriFactoryTest.php b/tests/Uri/UriFactoryTest.php index 685dbe47c..fbc4b6b61 100644 --- a/tests/Uri/UriFactoryTest.php +++ b/tests/Uri/UriFactoryTest.php @@ -29,6 +29,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The http url factory has the expected default values after initialization * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testDefault() : void { @@ -39,6 +40,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be set to the factory and returned * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testQueryInputOutput() : void { @@ -49,6 +51,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be forcefully overwritten * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testOverwrite() : void { @@ -60,6 +63,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox By default data is not overwritten in the factory * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testInvalidOverwrite() : void { @@ -71,6 +75,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be removed/cleared from the factory * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testClearing() : void { @@ -82,6 +87,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing data cannot be cleared from the factory * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testInvalidClearing() : void { @@ -93,6 +99,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be removed from the factory by category * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testClean() : void { @@ -106,6 +113,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox All data can be removed from the factory with a wildcard * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testCleanWildcard() : void { @@ -119,6 +127,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be removed from the factory with regular expression matches * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testClearingLike() : void { @@ -135,6 +144,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox Data whitch doesn't match the regular expression is not removed * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testInvalidClearingLike() : void { @@ -147,6 +157,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox A url can be build with the defined factory data and/or build specific data * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testBuilder() : void { @@ -169,6 +180,7 @@ class UriFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The uri factory can be set up with default values from a url and build with these default values * @covers phpOMS\Uri\UriFactory + * @group framework */ public function testSetupBuild() : void { diff --git a/tests/Uri/UriSchemeTest.php b/tests/Uri/UriSchemeTest.php index 32a278bb8..59d15ce5b 100644 --- a/tests/Uri/UriSchemeTest.php +++ b/tests/Uri/UriSchemeTest.php @@ -24,6 +24,7 @@ use phpOMS\Uri\UriScheme; class UriSchemeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void @@ -46,6 +47,7 @@ class UriSchemeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnumUnique() : void diff --git a/tests/Utils/ArrayUtilsTest.php b/tests/Utils/ArrayUtilsTest.php index 8e537da5b..93781dd1c 100644 --- a/tests/Utils/ArrayUtilsTest.php +++ b/tests/Utils/ArrayUtilsTest.php @@ -28,6 +28,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Array values can be set and returned with a path * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayInputOutput() : void { @@ -63,6 +64,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Test recursively if a value is in an array * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayInRecursive() : void { @@ -86,6 +88,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox An array element can be removed by its path * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayDelete() : void { @@ -106,6 +109,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The recursive sum of all values in an array can be calculated * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayRecursiveSum() : void { @@ -116,6 +120,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-dimensional array can be flatten to a one-dimensional array * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayFlatten() : void { @@ -127,6 +132,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The sum of an array can be calculated * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArraySum() : void { @@ -139,6 +145,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be checked if it contains multiple defined elements * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayAllIn() : void { @@ -152,6 +159,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be checked if it contains any of the defined elements * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArrayAnyIn() : void { @@ -163,6 +171,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be checked if it has an element and returns its index * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArgHas() : void { @@ -174,6 +183,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing argument in an array returns a negative value * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testInvalidArgHas() : void { @@ -183,6 +193,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The argument value in an array can be returned * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testArgGet() : void { @@ -194,6 +205,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing argument in an array returns null * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testInvalidArgGet() : void { @@ -203,6 +215,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox All array values in an array can be exponentiated by an integer * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testPowerInt() : void { @@ -215,6 +228,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase * @covers phpOMS\Utils\ArrayUtils * * @todo combine with int as soon as union types exist + * @group framework */ public function testPowerFloat() : void { @@ -225,6 +239,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox All array values in an array can be square rooted * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testSqrt() : void { @@ -234,6 +249,7 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox All array values in an array can be turned into their absolute value * @covers phpOMS\Utils\ArrayUtils + * @group framework */ public function testAbs() : void { diff --git a/tests/Utils/Barcode/OrientationTypeTest.php b/tests/Utils/Barcode/OrientationTypeTest.php index ccd821dcc..9716cd703 100644 --- a/tests/Utils/Barcode/OrientationTypeTest.php +++ b/tests/Utils/Barcode/OrientationTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Barcode\OrientationType; class OrientationTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class OrientationTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class OrientationTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/ColorUtilsTest.php b/tests/Utils/ColorUtilsTest.php index 07db39a40..241283fd6 100644 --- a/tests/Utils/ColorUtilsTest.php +++ b/tests/Utils/ColorUtilsTest.php @@ -28,6 +28,7 @@ class ColorUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A integer can be converted to rgb * @covers phpOMS\Utils\ColorUtils + * @group framework */ public function testIntToRgb() : void { @@ -37,6 +38,7 @@ class ColorUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Rgb can be converted to a integer * @covers phpOMS\Utils\ColorUtils + * @group framework */ public function testRgbToInt() : void { diff --git a/tests/Utils/Compression/LZWTest.php b/tests/Utils/Compression/LZWTest.php index 859a709b8..6f87f331d 100644 --- a/tests/Utils/Compression/LZWTest.php +++ b/tests/Utils/Compression/LZWTest.php @@ -26,6 +26,7 @@ class LZWTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be LZW compressed and uncompressed * @covers phpOMS\Utils\Compression\LZW + * @group framework */ public function testLZW() : void { diff --git a/tests/Utils/Converter/AngleTypeTest.php b/tests/Utils/Converter/AngleTypeTest.php index 653ca0749..ffade9a7d 100644 --- a/tests/Utils/Converter/AngleTypeTest.php +++ b/tests/Utils/Converter/AngleTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\AngleType; class AngleTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class AngleTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class AngleTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/AreaTypeTest.php b/tests/Utils/Converter/AreaTypeTest.php index 8381a659f..593ff5329 100644 --- a/tests/Utils/Converter/AreaTypeTest.php +++ b/tests/Utils/Converter/AreaTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\AreaType; class AreaTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class AreaTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class AreaTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/CurrencyTest.php b/tests/Utils/Converter/CurrencyTest.php index 644575c7d..fe7218ea0 100644 --- a/tests/Utils/Converter/CurrencyTest.php +++ b/tests/Utils/Converter/CurrencyTest.php @@ -27,6 +27,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 */ public function testCurrencyFromEur() : void { @@ -36,6 +37,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 */ public function testCurrencyToEur() : void { @@ -45,6 +47,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 */ public function testCurrency() : void { @@ -55,6 +58,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 */ public function testInvalidFromEur() : void { @@ -66,6 +70,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 */ public function testInvalidToEur() : void { @@ -77,6 +82,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 */ public function testInvalidConvert() : void { diff --git a/tests/Utils/Converter/EnergyPowerTypeTest.php b/tests/Utils/Converter/EnergyPowerTypeTest.php index 02ef3cce3..9c75dd046 100644 --- a/tests/Utils/Converter/EnergyPowerTypeTest.php +++ b/tests/Utils/Converter/EnergyPowerTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\EnergyPowerType; class EnergyPowerTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class EnergyPowerTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class EnergyPowerTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/FileSizeTypeTest.php b/tests/Utils/Converter/FileSizeTypeTest.php index 3a0fae661..b8ac157d3 100644 --- a/tests/Utils/Converter/FileSizeTypeTest.php +++ b/tests/Utils/Converter/FileSizeTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\FileSizeType; class FileSizeTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class FileSizeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class FileSizeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/FileTest.php b/tests/Utils/Converter/FileTest.php index def61897c..311ed5ca2 100644 --- a/tests/Utils/Converter/FileTest.php +++ b/tests/Utils/Converter/FileTest.php @@ -26,6 +26,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A byte number can be converted to a string representation * @covers phpOMS\Utils\Converter\File + * @group framework */ public function testByteSizeToString() : void { @@ -38,6 +39,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A kilobyte number can be converted to a string representation * @covers phpOMS\Utils\Converter\File + * @group framework */ public function testKilobyteSizeToString() : void { diff --git a/tests/Utils/Converter/IpTest.php b/tests/Utils/Converter/IpTest.php index 283bc1a29..e604c9b93 100644 --- a/tests/Utils/Converter/IpTest.php +++ b/tests/Utils/Converter/IpTest.php @@ -26,6 +26,7 @@ class IpTest extends \PHPUnit\Framework\TestCase /** * @testdox An ip can be converted to a float * @covers phpOMS\Utils\Converter\Ip + * @group framework */ public function testIp() : void { diff --git a/tests/Utils/Converter/LengthTypeTest.php b/tests/Utils/Converter/LengthTypeTest.php index 4ece85ce2..133faf502 100644 --- a/tests/Utils/Converter/LengthTypeTest.php +++ b/tests/Utils/Converter/LengthTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\LengthType; class LengthTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class LengthTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class LengthTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/MeasurementTest.php b/tests/Utils/Converter/MeasurementTest.php index c47bfc5e7..4ffa46f39 100644 --- a/tests/Utils/Converter/MeasurementTest.php +++ b/tests/Utils/Converter/MeasurementTest.php @@ -37,6 +37,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Temperatures can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testTemperature() : void { @@ -57,6 +58,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Weights can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testWeight() : void { @@ -77,6 +79,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Lengths can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testLength() : void { @@ -97,6 +100,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Areas can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testArea() : void { @@ -117,6 +121,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Volumes can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testVolume() : void { @@ -137,6 +142,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Speeds can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testSpeed() : void { @@ -157,6 +163,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Times can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testTime() : void { @@ -177,6 +184,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Angles can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testAngle() : void { @@ -197,6 +205,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Pressures can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testPressure() : void { @@ -217,6 +226,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Energies can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testEnergy() : void { @@ -237,6 +247,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Filesizes can be converted * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testFileSize() : void { @@ -257,6 +268,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown temperature throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidTemperatureFrom() : void { @@ -268,6 +280,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown temperature throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidTemperatureTo() : void { @@ -279,6 +292,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown weight throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidWeightFrom() : void { @@ -290,6 +304,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown weight throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidWeightTo() : void { @@ -301,6 +316,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown length throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidLengthFrom() : void { @@ -312,6 +328,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown length throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidLengthTo() : void { @@ -323,6 +340,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown area throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidAreaFrom() : void { @@ -334,6 +352,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown area throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidAreaTo() : void { @@ -345,6 +364,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown volume throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidVolumeFrom() : void { @@ -356,6 +376,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown volume throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidVolumeTo() : void { @@ -367,6 +388,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown speed throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidSpeedFrom() : void { @@ -378,6 +400,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown speed throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidSpeedTo() : void { @@ -389,6 +412,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown time throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidTimeFrom() : void { @@ -400,6 +424,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown time throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidTimeTo() : void { @@ -411,6 +436,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown angle throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidAngleFrom() : void { @@ -422,6 +448,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown angle throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidAngleTo() : void { @@ -433,6 +460,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown pressure throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidPressureFrom() : void { @@ -444,6 +472,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown pressure throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidPressureTo() : void { @@ -455,6 +484,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown energy throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidEnergyPowerFrom() : void { @@ -466,6 +496,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown energy throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidEnergyPowerTo() : void { @@ -477,6 +508,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion from unknown filesize throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidFileSizeFrom() : void { @@ -488,6 +520,7 @@ class MeasurementTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid convertion to unknown filesize throws a InvalidArgumentException * @covers phpOMS\Utils\Converter\Measurement + * @group framework */ public function testInvalidFileSizeTo() : void { diff --git a/tests/Utils/Converter/NumericTest.php b/tests/Utils/Converter/NumericTest.php index b27cea0a5..199995ef9 100644 --- a/tests/Utils/Converter/NumericTest.php +++ b/tests/Utils/Converter/NumericTest.php @@ -26,6 +26,7 @@ class NumericTest extends \PHPUnit\Framework\TestCase /** * @testdox Arabic numbers can be converted to roman numbers * @covers phpOMS\Utils\Converter\Numeric + * @group framework */ public function testArabicToRoman() : void { @@ -41,6 +42,7 @@ class NumericTest extends \PHPUnit\Framework\TestCase /** * @testdox Roman numbers can be converted to arabic numbers * @covers phpOMS\Utils\Converter\Numeric + * @group framework */ public function testRomanToArabic() : void { @@ -53,6 +55,7 @@ class NumericTest extends \PHPUnit\Framework\TestCase /** * @testdox Letters can be converted to numbers * @covers phpOMS\Utils\Converter\Numeric + * @group framework */ public function testAlphaToNumeric() : void { @@ -64,6 +67,7 @@ class NumericTest extends \PHPUnit\Framework\TestCase /** * @testdox Numbers can be converted to letters * @covers phpOMS\Utils\Converter\Numeric + * @group framework */ public function testNumericToAlpha() : void { @@ -75,6 +79,7 @@ class NumericTest extends \PHPUnit\Framework\TestCase /** * @testdox Numbers can be converted between bases * @covers phpOMS\Utils\Converter\Numeric + * @group framework */ public function testBase() : void { diff --git a/tests/Utils/Converter/PressureTypeTest.php b/tests/Utils/Converter/PressureTypeTest.php index 6377ca182..88dd96b98 100644 --- a/tests/Utils/Converter/PressureTypeTest.php +++ b/tests/Utils/Converter/PressureTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\PressureType; class PressureTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class PressureTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class PressureTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/SpeedTypeTest.php b/tests/Utils/Converter/SpeedTypeTest.php index 0da4358bc..a1ea02360 100644 --- a/tests/Utils/Converter/SpeedTypeTest.php +++ b/tests/Utils/Converter/SpeedTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\SpeedType; class SpeedTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class SpeedTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class SpeedTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/TemperatureTypeTest.php b/tests/Utils/Converter/TemperatureTypeTest.php index 0f16e1225..51cf3ec52 100644 --- a/tests/Utils/Converter/TemperatureTypeTest.php +++ b/tests/Utils/Converter/TemperatureTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\TemperatureType; class TemperatureTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class TemperatureTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class TemperatureTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/TimeTypeTest.php b/tests/Utils/Converter/TimeTypeTest.php index cb60634c8..c0a4b3138 100644 --- a/tests/Utils/Converter/TimeTypeTest.php +++ b/tests/Utils/Converter/TimeTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\TimeType; class TimeTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class TimeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class TimeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/VolumeTypeTest.php b/tests/Utils/Converter/VolumeTypeTest.php index 584fb6572..48fc9c4de 100644 --- a/tests/Utils/Converter/VolumeTypeTest.php +++ b/tests/Utils/Converter/VolumeTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\VolumeType; class VolumeTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class VolumeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class VolumeTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Converter/WeightTypeTest.php b/tests/Utils/Converter/WeightTypeTest.php index ad2d4cb58..f092ffeee 100644 --- a/tests/Utils/Converter/WeightTypeTest.php +++ b/tests/Utils/Converter/WeightTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\Converter\WeightType; class WeightTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class WeightTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class WeightTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/Encoding/CaesarTest.php b/tests/Utils/Encoding/CaesarTest.php index e143f36f8..2bd188dd4 100644 --- a/tests/Utils/Encoding/CaesarTest.php +++ b/tests/Utils/Encoding/CaesarTest.php @@ -26,6 +26,7 @@ class CaesarTest extends \PHPUnit\Framework\TestCase /** * @testdox Text can be encoded and decoded with the ceasar encoding * @covers phpOMS\Utils\Encoding\Caesar + * @group framework */ public function testEncoding() : void { diff --git a/tests/Utils/Encoding/GrayTest.php b/tests/Utils/Encoding/GrayTest.php index 61a3ad1c1..5610ced52 100644 --- a/tests/Utils/Encoding/GrayTest.php +++ b/tests/Utils/Encoding/GrayTest.php @@ -26,6 +26,7 @@ class GrayTest extends \PHPUnit\Framework\TestCase /** * @testdox Text can be encoded and decoded with the gray encoding * @covers phpOMS\Utils\Encoding\Gray + * @group framework */ public function testEncoding() : void { diff --git a/tests/Utils/Encoding/Huffman/DictionaryTest.php b/tests/Utils/Encoding/Huffman/DictionaryTest.php index 0e601957e..0d02433ed 100644 --- a/tests/Utils/Encoding/Huffman/DictionaryTest.php +++ b/tests/Utils/Encoding/Huffman/DictionaryTest.php @@ -26,6 +26,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase /** * @testdox Only single characters can be returned from the dictionary. Multiple characters throw a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary + * @group framework */ public function testInvalidGetCharacter() : void { @@ -38,6 +39,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing character throws a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary + * @group framework */ public function testNotExistingGetCharacter() : void { @@ -50,6 +52,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase /** * @testdox Only single chracters can be set in the dictionary. Multiple characters throw a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary + * @group framework */ public function testInvalidSetCharacter() : void { @@ -62,6 +65,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase /** * @testdox Dictionary elements cannot be overwritten and throw a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary + * @group framework */ public function testInvalidSetDuplicateCharacter() : void { @@ -75,6 +79,7 @@ class DictionaryTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid dictionary values throw a InvalidArgumentException * @covers phpOMS\Utils\Encoding\Huffman\Dictionary + * @group framework */ public function testInvalidFormattedValue() : void { diff --git a/tests/Utils/Encoding/Huffman/HuffmanTest.php b/tests/Utils/Encoding/Huffman/HuffmanTest.php index b541ed658..e6af92809 100644 --- a/tests/Utils/Encoding/Huffman/HuffmanTest.php +++ b/tests/Utils/Encoding/Huffman/HuffmanTest.php @@ -26,6 +26,7 @@ class HuffmanTest extends \PHPUnit\Framework\TestCase /** * @testdox Encoding and decoding empty data results in an empty output + * @group framework */ public function testEmpty() : void { @@ -36,6 +37,7 @@ class HuffmanTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be huffman encoded and decoded + * @group framework */ public function testHuffman() : void { diff --git a/tests/Utils/Encoding/XorEncodingTest.php b/tests/Utils/Encoding/XorEncodingTest.php index e40d235c9..dc6f4b513 100644 --- a/tests/Utils/Encoding/XorEncodingTest.php +++ b/tests/Utils/Encoding/XorEncodingTest.php @@ -27,6 +27,7 @@ class XorEncodingTest extends \PHPUnit\Framework\TestCase /** * @testdox Text can be encoded and decoded with the xor encoding * @covers phpOMS\Utils\Encoding\XorEncoding + * @group framework */ public function testEncoding() : void { diff --git a/tests/Utils/Git/AuthorTest.php b/tests/Utils/Git/AuthorTest.php index 3f1baafef..6b58b6375 100644 --- a/tests/Utils/Git/AuthorTest.php +++ b/tests/Utils/Git/AuthorTest.php @@ -26,6 +26,7 @@ class AuthorTest extends \PHPUnit\Framework\TestCase /** * @testdox The author has the expected default values after initialization * @covers phpOMS\Utils\Git\Author + * @group framework */ public function testDefault() : void { @@ -40,6 +41,7 @@ class AuthorTest extends \PHPUnit\Framework\TestCase /** * @testdox The author name and email can be set during initialization and returned * @covers phpOMS\Utils\Git\Author + * @group framework */ public function testConstructInputOutput() : void { @@ -51,6 +53,7 @@ class AuthorTest extends \PHPUnit\Framework\TestCase /** * @testdox The commit count can be set and returned * @covers phpOMS\Utils\Git\Author + * @group framework */ public function testCommitCountInputOutput() : void { @@ -63,6 +66,7 @@ class AuthorTest extends \PHPUnit\Framework\TestCase /** * @testdox The addition count can be set and returned * @covers phpOMS\Utils\Git\Author + * @group framework */ public function testAdditionCountInputOutput() : void { @@ -75,6 +79,7 @@ class AuthorTest extends \PHPUnit\Framework\TestCase /** * @testdox The removal count can be set and returned * @covers phpOMS\Utils\Git\Author + * @group framework */ public function testRemovalCountInputOutput() : void { diff --git a/tests/Utils/Git/BranchTest.php b/tests/Utils/Git/BranchTest.php index 215f3cc45..e0436d55d 100644 --- a/tests/Utils/Git/BranchTest.php +++ b/tests/Utils/Git/BranchTest.php @@ -26,6 +26,7 @@ class BranchTest extends \PHPUnit\Framework\TestCase /** * @testdox The branch has the expected default values after initialization * @covers phpOMS\Utils\Git\Branch + * @group framework */ public function testDefault() : void { @@ -36,6 +37,7 @@ class BranchTest extends \PHPUnit\Framework\TestCase /** * @testdox The branch name can be set during initialization and returned * @covers phpOMS\Utils\Git\Branch + * @group framework */ public function testConstructInputOutput() : void { diff --git a/tests/Utils/Git/CommitTest.php b/tests/Utils/Git/CommitTest.php index 54b54d8e3..0b2c3be4c 100644 --- a/tests/Utils/Git/CommitTest.php +++ b/tests/Utils/Git/CommitTest.php @@ -30,6 +30,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The commit has the expected default values after initialization * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testDefault() : void { @@ -47,6 +48,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be added and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testFileInputOutput() : void { @@ -63,6 +65,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can only be added one time * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testInvalidOverwrite() : void { @@ -75,6 +78,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A file can be removed * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testRemoveFile() : void { @@ -92,6 +96,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing file cannot be removed * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testInvalidRemoveFile() : void { @@ -103,6 +108,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A change can be added and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testChangeInputOutput() : void { @@ -123,6 +129,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox Adding the same change throws a Exception * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testDuplicateLineChange() : void { @@ -136,6 +143,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox A commit message can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testMessageInputOutput() : void { @@ -148,6 +156,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The author can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testAuthorInputOutput() : void { @@ -160,6 +169,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The branch can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testBranchInputOutput() : void { @@ -172,6 +182,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The tag can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testTagInputOutput() : void { @@ -184,6 +195,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The date can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testDateInputOutput() : void { @@ -196,6 +208,7 @@ class CommitTest extends \PHPUnit\Framework\TestCase /** * @testdox The repository can be set and returned * @covers phpOMS\Utils\Git\Commit + * @group framework */ public function testRepositoryInputOutput() : void { diff --git a/tests/Utils/Git/GitTest.php b/tests/Utils/Git/GitTest.php index 2d4764acb..afb6f9c7c 100644 --- a/tests/Utils/Git/GitTest.php +++ b/tests/Utils/Git/GitTest.php @@ -26,6 +26,7 @@ class GitTest extends \PHPUnit\Framework\TestCase /** * @testdox The git path can be returned * @covers phpOMS\Utils\Git\Git + * @group framework */ public function testBinary() : void { diff --git a/tests/Utils/Git/RepositoryTest.php b/tests/Utils/Git/RepositoryTest.php index af7ca6bf1..4d9d11860 100644 --- a/tests/Utils/Git/RepositoryTest.php +++ b/tests/Utils/Git/RepositoryTest.php @@ -27,6 +27,7 @@ class RepositoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The repository has the expected default values after initialization * @covers phpOMS\Utils\Git\Repository + * @group framework */ public function testDefault() : void { diff --git a/tests/Utils/Git/TagTest.php b/tests/Utils/Git/TagTest.php index 1d054c09f..cb942aeab 100644 --- a/tests/Utils/Git/TagTest.php +++ b/tests/Utils/Git/TagTest.php @@ -26,6 +26,7 @@ class TagTest extends \PHPUnit\Framework\TestCase /** * @testdox The tag has the expected default values after initialization * @covers phpOMS\Utils\Git\Repository + * @group framework */ public function testDefault() : void { @@ -37,6 +38,7 @@ class TagTest extends \PHPUnit\Framework\TestCase /** * @testdox The tag name can be set during initialization and returned * @covers phpOMS\Utils\Git\Repository + * @group framework */ public function testConstructorInputOutput() : void { @@ -47,6 +49,7 @@ class TagTest extends \PHPUnit\Framework\TestCase /** * @testdox The message can be set and returned * @covers phpOMS\Utils\Git\Repository + * @group framework */ public function testMessageInputOutput() : void { diff --git a/tests/Utils/IO/Csv/CsvSettingsTest.php b/tests/Utils/IO/Csv/CsvSettingsTest.php index ed01c3b6d..609857f90 100644 --- a/tests/Utils/IO/Csv/CsvSettingsTest.php +++ b/tests/Utils/IO/Csv/CsvSettingsTest.php @@ -27,6 +27,7 @@ class CsvSettingsTest extends \PHPUnit\Framework\TestCase /** * @testdox The delimitar in a csv file can be guessed * @covers phpOMS\Utils\IO\Csv\CsvSettings + * @group framework */ public function testDelimiter() : void { diff --git a/tests/Utils/IO/Spreadsheet/ExcelDatabaseMapperTest.php b/tests/Utils/IO/Spreadsheet/ExcelDatabaseMapperTest.php index 1046320a3..cffc54fa1 100644 --- a/tests/Utils/IO/Spreadsheet/ExcelDatabaseMapperTest.php +++ b/tests/Utils/IO/Spreadsheet/ExcelDatabaseMapperTest.php @@ -58,6 +58,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into a database from an ods files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper + * @group framework */ public function testInsertOds() : void { @@ -93,6 +94,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into a database from a xls files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::insert + * @group framework */ public function testInsertXls() : void { @@ -127,6 +129,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into a database from a xlsx files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::insert + * @group framework */ public function testInsertXlsx() : void { @@ -161,6 +164,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be updated in a database from an ods files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::update + * @group framework */ public function testUpdateOds() : void { @@ -222,6 +226,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be updated in a database from a xls files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::update + * @group framework */ public function testUpdateXls() : void { @@ -283,6 +288,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be updated in a database from a xlsx files * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::update + * @group framework */ public function testUpdateXlsx() : void { @@ -344,6 +350,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into an ods files from a database * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::select + * @group framework */ public function testSelectOds() : void { @@ -395,6 +402,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into a xls files from a database * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::select + * @group framework */ public function testSelectXls() : void { @@ -446,6 +454,7 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be inserted into a xlsx files from a database * @covers phpOMS\Utils\IO\Spreadsheet\SpreadsheetDatabaseMapper::select + * @group framework */ public function testSelectXlsx() : void { diff --git a/tests/Utils/IO/Zip/GzTest.php b/tests/Utils/IO/Zip/GzTest.php index b9e7b2913..124d74f07 100644 --- a/tests/Utils/IO/Zip/GzTest.php +++ b/tests/Utils/IO/Zip/GzTest.php @@ -26,6 +26,7 @@ class GzTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be gz packed and unpacked * @covers phpOMS\Utils\IO\Zip\Gz + * @group framework */ public function testGz() : void { @@ -51,6 +52,7 @@ class GzTest extends \PHPUnit\Framework\TestCase /** * @testdox A gz archive cannot be overwritten by default * @covers phpOMS\Utils\IO\Zip\Gz + * @group framework */ public function testInvalidGz() : void { @@ -70,6 +72,7 @@ class GzTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing source cannot be unpacked * @covers phpOMS\Utils\IO\Zip\Gz + * @group framework */ public function testInvalidUnpackSource() : void { @@ -79,6 +82,7 @@ class GzTest extends \PHPUnit\Framework\TestCase /** * @testdox A destination cannot be overwritten * @covers phpOMS\Utils\IO\Zip\Gz + * @group framework */ public function testInvalidUnpackDestination() : void { diff --git a/tests/Utils/IO/Zip/TarGzTest.php b/tests/Utils/IO/Zip/TarGzTest.php index 6c29754e7..85329d474 100644 --- a/tests/Utils/IO/Zip/TarGzTest.php +++ b/tests/Utils/IO/Zip/TarGzTest.php @@ -35,6 +35,7 @@ class TarGzTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be tar gz packed and unpacked * @covers phpOMS\Utils\IO\Zip\TarGz + * @group framework */ public function testTarGz() : void { @@ -85,6 +86,7 @@ class TarGzTest extends \PHPUnit\Framework\TestCase /** * @testdox A tar gz archive cannot be overwritten by default * @covers phpOMS\Utils\IO\Zip\TarGz + * @group framework */ public function testInvalidTarGz() : void { @@ -112,6 +114,7 @@ class TarGzTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing source cannot be unpacked * @covers phpOMS\Utils\IO\Zip\TarGz + * @group framework */ public function testInvalidUnpackSource() : void { @@ -121,6 +124,7 @@ class TarGzTest extends \PHPUnit\Framework\TestCase /** * @testdox A destination cannot be overwritten * @covers phpOMS\Utils\IO\Zip\TarGz + * @group framework */ public function testInvalidUnpackDestination() : void { diff --git a/tests/Utils/IO/Zip/TarTest.php b/tests/Utils/IO/Zip/TarTest.php index f19d00193..8e1f1d03a 100644 --- a/tests/Utils/IO/Zip/TarTest.php +++ b/tests/Utils/IO/Zip/TarTest.php @@ -35,6 +35,7 @@ class TarTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be tar packed and unpacked * @covers phpOMS\Utils\IO\Zip\Tar + * @group framework */ public function testTar() : void { @@ -85,6 +86,7 @@ class TarTest extends \PHPUnit\Framework\TestCase /** * @testdox A tar archive cannot be overwritten by default * @covers phpOMS\Utils\IO\Zip\Tar + * @group framework */ public function testInvalidTar() : void { @@ -112,6 +114,7 @@ class TarTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing source cannot be unpacked * @covers phpOMS\Utils\IO\Zip\Tar + * @group framework */ public function testInvalidUnpackSource() : void { @@ -121,6 +124,7 @@ class TarTest extends \PHPUnit\Framework\TestCase /** * @testdox A destination cannot be overwritten * @covers phpOMS\Utils\IO\Zip\Tar + * @group framework */ public function testInvalidUnpackDestination() : void { diff --git a/tests/Utils/IO/Zip/ZipTest.php b/tests/Utils/IO/Zip/ZipTest.php index 293254f7c..3772d6ce5 100644 --- a/tests/Utils/IO/Zip/ZipTest.php +++ b/tests/Utils/IO/Zip/ZipTest.php @@ -35,6 +35,7 @@ class ZipTest extends \PHPUnit\Framework\TestCase /** * @testdox Data can be zip packed and unpacked * @covers phpOMS\Utils\IO\Zip\Zip + * @group framework */ public function testZip() : void { @@ -85,6 +86,7 @@ class ZipTest extends \PHPUnit\Framework\TestCase /** * @testdox A zip archive cannot be overwritten by default * @covers phpOMS\Utils\IO\Zip\Zip + * @group framework */ public function testInvalidZip() : void { @@ -112,6 +114,7 @@ class ZipTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing source cannot be unpacked * @covers phpOMS\Utils\IO\Zip\Zip + * @group framework */ public function testInvalidUnpackSource() : void { @@ -121,6 +124,7 @@ class ZipTest extends \PHPUnit\Framework\TestCase /** * @testdox A destination cannot be overwritten * @covers phpOMS\Utils\IO\Zip\Zip + * @group framework */ public function testInvalidUnpackDestination() : void { diff --git a/tests/Utils/ImageUtilsTest.php b/tests/Utils/ImageUtilsTest.php index c37c1861a..5151a501a 100644 --- a/tests/Utils/ImageUtilsTest.php +++ b/tests/Utils/ImageUtilsTest.php @@ -28,6 +28,7 @@ class ImageUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Base64 image data can be decoded to an image * @covers phpOMS\Utils\ImageUtils + * @group framework */ public function testImage() : void { diff --git a/tests/Utils/NumericUtilsTest.php b/tests/Utils/NumericUtilsTest.php index db0550cea..eed6204ed 100644 --- a/tests/Utils/NumericUtilsTest.php +++ b/tests/Utils/NumericUtilsTest.php @@ -28,6 +28,7 @@ class NumericUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Integers can be unsigned right shifted * @covers phpOMS\Utils\NumericUtils + * @group framework */ public function testShift() : void { diff --git a/tests/Utils/Parser/Php/ArrayParserTest.php b/tests/Utils/Parser/Php/ArrayParserTest.php index b7bc360c1..349e4cd6b 100644 --- a/tests/Utils/Parser/Php/ArrayParserTest.php +++ b/tests/Utils/Parser/Php/ArrayParserTest.php @@ -26,6 +26,7 @@ class ArrayParserTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be encoded and decoded as php code * @covers phpOMS\Utils\Parser\Php\ArrayParser + * @group framework */ public function testParser() : void { @@ -72,6 +73,7 @@ class ArrayParserTest extends \PHPUnit\Framework\TestCase /** * @testdox A value can be encoded and decoded into php code * @covers phpOMS\Utils\Parser\Php\ArrayParser + * @group framework */ public function testInvalidValueType() : void { diff --git a/tests/Utils/PermutationTest.php b/tests/Utils/PermutationTest.php index c131e5546..25cc16962 100644 --- a/tests/Utils/PermutationTest.php +++ b/tests/Utils/PermutationTest.php @@ -28,6 +28,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be permuted * @covers phpOMS\Utils\Permutation + * @group framework */ public function testPermute() : void { @@ -42,6 +43,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox Two string can be checked if they are a permutation of each other * @covers phpOMS\Utils\Permutation + * @group framework */ public function testIsPermutation() : void { @@ -52,6 +54,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it is a palindrome * @covers phpOMS\Utils\Permutation + * @group framework */ public function testIsPalindrome() : void { @@ -63,6 +66,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be permutated with a permutation key * @covers phpOMS\Utils\Permutation + * @group framework */ public function testPermutate() : void { @@ -72,6 +76,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid permutation type throws a InvalidArgumentException * @covers phpOMS\Utils\Permutation + * @group framework */ public function testWrongPermuteParameterType() : void { @@ -83,6 +88,7 @@ class PermutationTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing permutation keye throws a OutOfBoundsException * @covers phpOMS\Utils\Permutation + * @group framework */ public function testWrongPermuteKeyLength() : void { diff --git a/tests/Utils/RnG/ArrayRandomizeTest.php b/tests/Utils/RnG/ArrayRandomizeTest.php index 2943057c2..ab06192fb 100644 --- a/tests/Utils/RnG/ArrayRandomizeTest.php +++ b/tests/Utils/RnG/ArrayRandomizeTest.php @@ -26,6 +26,7 @@ class ArrayRandomizeTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be randomized using the yates algorithm * @covers phpOMS\Utils\RnG\ArrayRandomize + * @group framework */ public function testYates() : void { @@ -44,6 +45,7 @@ class ArrayRandomizeTest extends \PHPUnit\Framework\TestCase /** * @testdox An array can be randomized using the knuth algorithm * @covers phpOMS\Utils\RnG\ArrayRandomize + * @group framework */ public function testKnuth() : void { diff --git a/tests/Utils/RnG/DateTimeTest.php b/tests/Utils/RnG/DateTimeTest.php index 840ea9c2f..377ef52a7 100644 --- a/tests/Utils/RnG/DateTimeTest.php +++ b/tests/Utils/RnG/DateTimeTest.php @@ -26,6 +26,7 @@ class DateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A random date time can be generated * @covers phpOMS\Utils\RnG\ArrayRandomize + * @group framework */ public function testRnG() : void { diff --git a/tests/Utils/RnG/DistributionTypeTest.php b/tests/Utils/RnG/DistributionTypeTest.php index 473b4a3eb..90c8a2488 100644 --- a/tests/Utils/RnG/DistributionTypeTest.php +++ b/tests/Utils/RnG/DistributionTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Utils\RnG\DistributionType; class DistributionTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class DistributionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class DistributionTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Utils/RnG/FileTest.php b/tests/Utils/RnG/FileTest.php index 59c477dfe..c8b707885 100644 --- a/tests/Utils/RnG/FileTest.php +++ b/tests/Utils/RnG/FileTest.php @@ -26,6 +26,7 @@ class FileTest extends \PHPUnit\Framework\TestCase /** * @testdox A random file extension can be generated * @covers phpOMS\Utils\RnG\File + * @group framework */ public function testRnGExtension() : void { diff --git a/tests/Utils/RnG/LinearCongruentialGeneratorTest.php b/tests/Utils/RnG/LinearCongruentialGeneratorTest.php index d342fb8af..bb36760cc 100644 --- a/tests/Utils/RnG/LinearCongruentialGeneratorTest.php +++ b/tests/Utils/RnG/LinearCongruentialGeneratorTest.php @@ -26,6 +26,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox The bsd random number generator starts with the correct sequence * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testBsdRng() : void { @@ -35,6 +36,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox The same bsd seed generates the same random number * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testBsdRngEqual() : void { @@ -44,6 +46,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox Different bsd seeds generate different random numbers * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testBsdRngNotEqual() : void { @@ -53,6 +56,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox The msvcrt random number generator starts with the correct sequence * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testMsRng() : void { @@ -63,6 +67,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox The same msvcrt seed generates the same random number * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testMsRngEqual() : void { @@ -72,6 +77,7 @@ class LinearCongruentialGeneratorTest extends \PHPUnit\Framework\TestCase /** * @testdox Different msvcrt seeds generate different random numbers * @covers phpOMS\Utils\RnG\LinearCongruentialGenerator + * @group framework */ public function testMsRngNotEqual() : void { diff --git a/tests/Utils/RnG/NameTest.php b/tests/Utils/RnG/NameTest.php index 681155684..f98c222e1 100644 --- a/tests/Utils/RnG/NameTest.php +++ b/tests/Utils/RnG/NameTest.php @@ -26,6 +26,7 @@ class NameTest extends \PHPUnit\Framework\TestCase /** * @testdox Random female and male names can be generated * @covers phpOMS\Utils\RnG\Name + * @group framework */ public function testRandom() : void { diff --git a/tests/Utils/RnG/PhoneTest.php b/tests/Utils/RnG/PhoneTest.php index 84f9a5570..971ffbeea 100644 --- a/tests/Utils/RnG/PhoneTest.php +++ b/tests/Utils/RnG/PhoneTest.php @@ -26,6 +26,7 @@ class PhoneTest extends \PHPUnit\Framework\TestCase /** * @testdox Random phone numbers can be generated * @covers phpOMS\Utils\RnG\Phone + * @group framework */ public function testRnG() : void { diff --git a/tests/Utils/RnG/StringUtilsTest.php b/tests/Utils/RnG/StringUtilsTest.php index 43d0ddf4a..85a9ae3a9 100644 --- a/tests/Utils/RnG/StringUtilsTest.php +++ b/tests/Utils/RnG/StringUtilsTest.php @@ -27,6 +27,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase * @testdox Random strings can be generated * @covers phpOMS\Utils\RnG\StringUtils * @slowThreshold 1500 + * @group framework */ public function testStrings() : void { diff --git a/tests/Utils/RnG/TextTest.php b/tests/Utils/RnG/TextTest.php index b2eae9025..ebe9957e7 100644 --- a/tests/Utils/RnG/TextTest.php +++ b/tests/Utils/RnG/TextTest.php @@ -26,6 +26,7 @@ class TextTest extends \PHPUnit\Framework\TestCase /** * @testdox Random text can be generated * @covers phpOMS\Utils\RnG\Text + * @group framework */ public function testRnG() : void { diff --git a/tests/Utils/StringCompareTest.php b/tests/Utils/StringCompareTest.php index 510b5117e..a688d6a1b 100644 --- a/tests/Utils/StringCompareTest.php +++ b/tests/Utils/StringCompareTest.php @@ -52,6 +52,7 @@ class StringCompareTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be matched with a dictionary entry * @covers phpOMS\Utils\StringCompare + * @group framework */ public function testDictionaryMatch() : void { @@ -62,6 +63,7 @@ class StringCompareTest extends \PHPUnit\Framework\TestCase /** * @testdox A string doesn't match a dictionary entry if it is very different * @covers phpOMS\Utils\StringCompare + * @group framework */ public function testInvalidDictionary() : void { @@ -71,6 +73,7 @@ class StringCompareTest extends \PHPUnit\Framework\TestCase /** * @testdox A new dictionary entry can be created and returned * @covers phpOMS\Utils\StringCompare + * @group framework */ public function testDictionaryAdd() : void { diff --git a/tests/Utils/StringUtilsTest.php b/tests/Utils/StringUtilsTest.php index d29328b24..e62a14ad7 100644 --- a/tests/Utils/StringUtilsTest.php +++ b/tests/Utils/StringUtilsTest.php @@ -29,6 +29,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The entropy of a string can be calculated * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testEntropy() : void { @@ -38,6 +39,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it starts with a defined string * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testStarts() : void { @@ -49,6 +51,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it ends with a defined string * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testEnds() : void { @@ -60,6 +63,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be checked if it starts with a defined string * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testStartsMb() : void { @@ -71,6 +75,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be checked if it ends with a defined string * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testEndsMb() : void { @@ -82,6 +87,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The first character of a multi-byte string can be turned into upper case * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testTransformUpperCase() : void { @@ -92,6 +98,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The first character of a multi-byte string can be turned into lower case * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testTransformLowerCase() : void { @@ -102,6 +109,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be trimmed * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testTrim() : void { @@ -116,6 +124,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be right-trimmed * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testRTrim() : void { @@ -126,6 +135,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be left-trimmed * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testLTrim() : void { @@ -136,6 +146,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it contains at least one defined string element * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testContains() : void { @@ -148,6 +159,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A multi-byte string can be checked if it contains at least one defined string element * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testContainsMb() : void { @@ -160,6 +172,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The characters of a multi-byte string can be counted * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testCountMb() : void { @@ -169,6 +182,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The amount of a defined characters in the beginning of a string can be counted * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testCountBeginning() : void { @@ -179,6 +193,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Various data types can be stringified * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testStringify() : void { @@ -230,6 +245,7 @@ class StringUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox The difference between two strings can be evaluated * @covers phpOMS\Utils\StringUtils + * @group framework */ public function testStringDiffHtml() : void { diff --git a/tests/Utils/TaskSchedule/CronJobTest.php b/tests/Utils/TaskSchedule/CronJobTest.php index efa3000cd..b6beebb1a 100644 --- a/tests/Utils/TaskSchedule/CronJobTest.php +++ b/tests/Utils/TaskSchedule/CronJobTest.php @@ -26,6 +26,7 @@ class CronJobTest extends \PHPUnit\Framework\TestCase /** * @testdox The cron job has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\CronJob + * @group framework */ public function testDefault() : void { @@ -37,6 +38,7 @@ class CronJobTest extends \PHPUnit\Framework\TestCase /** * @testdox A cron job can be created from an array and rendered * @covers phpOMS\Utils\TaskSchedule\CronJob + * @group framework */ public function testCreateJobWithData() : void { diff --git a/tests/Utils/TaskSchedule/CronTest.php b/tests/Utils/TaskSchedule/CronTest.php index 36099f497..d6674cf86 100644 --- a/tests/Utils/TaskSchedule/CronTest.php +++ b/tests/Utils/TaskSchedule/CronTest.php @@ -37,6 +37,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox The cron handler has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testDefault() : void { @@ -46,6 +47,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox The cron brinary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testGuessBinary() : void { @@ -55,6 +57,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox A cron job can be created and returned * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testCronJobInputOutput() : void { @@ -73,6 +76,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing cron name cannot be returned * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testInvalidCronJobName() : void { @@ -83,6 +87,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox A cron job can be updated * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testCronJobUpdate() : void { @@ -104,6 +109,7 @@ class CronTest extends \PHPUnit\Framework\TestCase /** * @testdox A cron job can be deleted * @covers phpOMS\Utils\TaskSchedule\Cron + * @group framework */ public function testDelete() : void { diff --git a/tests/Utils/TaskSchedule/IntervalTest.php b/tests/Utils/TaskSchedule/IntervalTest.php index 770fab26e..8b5590799 100644 --- a/tests/Utils/TaskSchedule/IntervalTest.php +++ b/tests/Utils/TaskSchedule/IntervalTest.php @@ -26,6 +26,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox The interval has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testDefault() : void { @@ -57,6 +58,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox The start date can be set during initialization and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testConstructorInputOutput() : void { @@ -67,6 +69,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox The start date can set and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testStartInputOutput() : void { @@ -79,6 +82,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox The end date can set and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testEndInputOutput() : void { @@ -91,6 +95,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox The maximum execution duration can set and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testMaxExecutionInputOutput() : void { @@ -103,6 +108,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution minute can be added and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testMinuteInputOutput() : void { @@ -119,6 +125,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution minute can be overwritten * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testMinuteOverwriteInputOutput() : void { @@ -136,6 +143,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution hour can be added and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testHourInputOutput() : void { @@ -152,6 +160,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution hour can be overwritten * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testHourOverwriteInputOutput() : void { @@ -169,6 +178,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution year can be added and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testYearInputOutput() : void { @@ -185,6 +195,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution year can be overwritten * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testYearOverwriteInputOutput() : void { @@ -202,6 +213,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution day of month can be added and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testDayOfMonthInputOutput() : void { @@ -218,6 +230,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution day of month can be overwritten * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testDayOfMonthOverwriteInputOutput() : void { @@ -235,6 +248,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution day of week can be added and returned * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testDayOfWeekInputOutput() : void { @@ -251,6 +265,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox An execution day of week can be overwritten * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testDayOfWeekOverwriteInputOutput() : void { @@ -268,6 +283,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox A interval can be serialized * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testSerialize() : void { @@ -297,6 +313,7 @@ class IntervalTest extends \PHPUnit\Framework\TestCase /** * @testdox A serialized interval can be unserialized * @covers phpOMS\Utils\TaskSchedule\Interval + * @group framework */ public function testUnserialize() : void { diff --git a/tests/Utils/TaskSchedule/ScheduleTest.php b/tests/Utils/TaskSchedule/ScheduleTest.php index d8e7a2791..8daef0f5a 100644 --- a/tests/Utils/TaskSchedule/ScheduleTest.php +++ b/tests/Utils/TaskSchedule/ScheduleTest.php @@ -26,6 +26,7 @@ class ScheduleTest extends \PHPUnit\Framework\TestCase /** * @testdox The task has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\Schedule + * @group framework */ public function testDefault() : void { @@ -38,6 +39,7 @@ class ScheduleTest extends \PHPUnit\Framework\TestCase * @testdox A task can be created from an array and rendered * @covers phpOMS\Utils\TaskSchedule\Schedule * @todo the interval has to be implemented! + * @group framework */ public function testCreateJobWithData() : void { diff --git a/tests/Utils/TaskSchedule/SchedulerAbstractTest.php b/tests/Utils/TaskSchedule/SchedulerAbstractTest.php index 44f4a2aed..764f13110 100644 --- a/tests/Utils/TaskSchedule/SchedulerAbstractTest.php +++ b/tests/Utils/TaskSchedule/SchedulerAbstractTest.php @@ -26,6 +26,7 @@ class SchedulerAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The scheduler has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract + * @group framework */ public function testDefault() : void { @@ -35,6 +36,7 @@ class SchedulerAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The scheduler brinary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract + * @group framework */ public function testGuessBinary() : void { diff --git a/tests/Utils/TaskSchedule/SchedulerFactoryTest.php b/tests/Utils/TaskSchedule/SchedulerFactoryTest.php index f4c93e0c2..82fbfb206 100644 --- a/tests/Utils/TaskSchedule/SchedulerFactoryTest.php +++ b/tests/Utils/TaskSchedule/SchedulerFactoryTest.php @@ -28,6 +28,7 @@ class SchedulerFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct schudeler is crated depending on the operating system * @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract + * @group framework */ public function testCreate() : void { diff --git a/tests/Utils/TaskSchedule/TaskAbstractTest.php b/tests/Utils/TaskSchedule/TaskAbstractTest.php index 00c57b5e8..b18b987c5 100644 --- a/tests/Utils/TaskSchedule/TaskAbstractTest.php +++ b/tests/Utils/TaskSchedule/TaskAbstractTest.php @@ -43,6 +43,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The task abstraction has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testDefault() : void { @@ -58,6 +59,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The command can be set and returned * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testCommandInputOutput() : void { @@ -68,6 +70,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The status can be set and returned * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testStatusInputOutput() : void { @@ -78,6 +81,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The comment can be set and returned * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testCommentInputOutput() : void { @@ -88,6 +92,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The last runtime can be set and returned * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testLastRuntimeInputOutput() : void { @@ -99,6 +104,7 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase /** * @testdox The next runtime can be set and returned * @covers phpOMS\Utils\TaskSchedule\TaskAbstract + * @group framework */ public function testNextRuntimeInputOutput() : void { diff --git a/tests/Utils/TaskSchedule/TaskFactoryTest.php b/tests/Utils/TaskSchedule/TaskFactoryTest.php index 55f2acf3a..ead4b099d 100644 --- a/tests/Utils/TaskSchedule/TaskFactoryTest.php +++ b/tests/Utils/TaskSchedule/TaskFactoryTest.php @@ -28,6 +28,7 @@ class TaskFactoryTest extends \PHPUnit\Framework\TestCase /** * @testdox The correct task is crated depending on the operating system * @covers phpOMS\Utils\TaskSchedule\TaskFactory + * @group framework */ public function testFactory() : void { diff --git a/tests/Utils/TaskSchedule/TaskSchedulerTest.php b/tests/Utils/TaskSchedule/TaskSchedulerTest.php index 360b66a4f..b56030d17 100644 --- a/tests/Utils/TaskSchedule/TaskSchedulerTest.php +++ b/tests/Utils/TaskSchedule/TaskSchedulerTest.php @@ -36,6 +36,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox The task handler has the expected default values after initialization * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testDefault() : void { @@ -45,6 +46,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox The task brinary location path can be guessed * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testGuessBinary() : void { @@ -54,6 +56,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox A task can be created and returned * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testTaskScheduleInputOutput() : void { @@ -72,6 +75,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing task name cannot be returned * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testInvalidCronJobName() : void { @@ -82,6 +86,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox A task can be updated * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testTaskScheduleUpdate() : void { @@ -103,6 +108,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase /** * @testdox A task can be deleted * @covers phpOMS\Utils\TaskSchedule\TaskScheduler + * @group framework */ public function testDelete() : void { diff --git a/tests/Utils/TestUtilsTest.php b/tests/Utils/TestUtilsTest.php index 26a80b0f9..bf3080c8e 100644 --- a/tests/Utils/TestUtilsTest.php +++ b/tests/Utils/TestUtilsTest.php @@ -28,6 +28,7 @@ class TestUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A member value can be returned * @covers phpOMS\Utils\TestUtils + * @group framework */ public function testGet() : void { @@ -42,6 +43,7 @@ class TestUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox Invalid member variable returns null * @covers phpOMS\Utils\TestUtils + * @group framework */ public function testInvalidGet() : void { @@ -53,6 +55,7 @@ class TestUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A member value can be set and returned * @covers phpOMS\Utils\TestUtils + * @group framework */ public function testInputOutput() : void { @@ -72,6 +75,7 @@ class TestUtilsTest extends \PHPUnit\Framework\TestCase /** * @testdox A none-existing member variable cannot be set * @covers phpOMS\Utils\TestUtils + * @group framework */ public function testInputInputOutput() : void { diff --git a/tests/Validation/Base/DateTimeTest.php b/tests/Validation/Base/DateTimeTest.php index 0e73cd7a5..d81cf656e 100644 --- a/tests/Validation/Base/DateTimeTest.php +++ b/tests/Validation/Base/DateTimeTest.php @@ -28,6 +28,7 @@ class DateTimeTest extends \PHPUnit\Framework\TestCase /** * @testdox A date time string can be validated * @covers phpOMS\Validation\Base\DateTime + * @group framework */ public function testDateTime() : void { diff --git a/tests/Validation/Base/JsonTest.php b/tests/Validation/Base/JsonTest.php index d09b10c7b..fe9ff1309 100644 --- a/tests/Validation/Base/JsonTest.php +++ b/tests/Validation/Base/JsonTest.php @@ -26,6 +26,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string can be validated * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testJson() : void { @@ -36,6 +37,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string can be validated against a template definition * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testJsonTemplate() : void { @@ -49,6 +51,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string can be validated against a template definition with additional data * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testJsonTemplateAdditional() : void { @@ -61,6 +64,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string cannot be validated against a template definition with additional data if an exact match is enforced * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testJsonTemplateInvalidAdditional() : void { @@ -73,6 +77,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string cannot be validated against a template definition with missing data if an exact match is enforced * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testJsonTemplateInvalidMissing() : void { @@ -85,6 +90,7 @@ class JsonTest extends \PHPUnit\Framework\TestCase /** * @testdox A json string cannot be validated against a template definition if it doesn't match the template * @covers phpOMS\Validation\Base\Json + * @group framework */ public function testInvalidJsonTemplate() : void { diff --git a/tests/Validation/Finance/BICTest.php b/tests/Validation/Finance/BICTest.php index 444d56989..2dfa50802 100644 --- a/tests/Validation/Finance/BICTest.php +++ b/tests/Validation/Finance/BICTest.php @@ -26,6 +26,7 @@ class BICTest extends \PHPUnit\Framework\TestCase /** * @testdox A BIC can be validated * @covers phpOMS\Validation\Finance\BIC + * @group framework */ public function testBic() : void { diff --git a/tests/Validation/Finance/CreditCardTest.php b/tests/Validation/Finance/CreditCardTest.php index f59d9ef83..f9918c927 100644 --- a/tests/Validation/Finance/CreditCardTest.php +++ b/tests/Validation/Finance/CreditCardTest.php @@ -26,6 +26,7 @@ class CreditCardTest extends \PHPUnit\Framework\TestCase /** * @testdox A credit card can be validated * @covers phpOMS\Validation\Finance\CreditCard + * @group framework */ public function testCreditCard() : void { @@ -40,6 +41,7 @@ class CreditCardTest extends \PHPUnit\Framework\TestCase /** * @testdox A invalid type cannot be validated * @covers phpOMS\Validation\Finance\CreditCard + * @group framework */ public function testInvalidCreditCardType() : void { diff --git a/tests/Validation/Finance/IbanEnumTest.php b/tests/Validation/Finance/IbanEnumTest.php index 13fdf993a..075929c23 100644 --- a/tests/Validation/Finance/IbanEnumTest.php +++ b/tests/Validation/Finance/IbanEnumTest.php @@ -22,6 +22,7 @@ use phpOMS\Validation\Finance\IbanEnum; class IbanEnumTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Validation/Finance/IbanErrorTypeTest.php b/tests/Validation/Finance/IbanErrorTypeTest.php index c380a1eb4..f6c08e2d6 100644 --- a/tests/Validation/Finance/IbanErrorTypeTest.php +++ b/tests/Validation/Finance/IbanErrorTypeTest.php @@ -22,6 +22,7 @@ use phpOMS\Validation\Finance\IbanErrorType; class IbanErrorTypeTest extends \PHPUnit\Framework\TestCase { /** + * @group framework * @coversNothing */ public function testEnumCount() : void @@ -30,6 +31,7 @@ class IbanErrorTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testUnique() : void @@ -38,6 +40,7 @@ class IbanErrorTypeTest extends \PHPUnit\Framework\TestCase } /** + * @group framework * @coversNothing */ public function testEnums() : void diff --git a/tests/Validation/Finance/IbanTest.php b/tests/Validation/Finance/IbanTest.php index 18ae158b8..259143322 100644 --- a/tests/Validation/Finance/IbanTest.php +++ b/tests/Validation/Finance/IbanTest.php @@ -26,6 +26,7 @@ class IbanTest extends \PHPUnit\Framework\TestCase /** * @testdox A iban can be validated * @covers phpOMS\Validation\Finance\Iban + * @group framework */ public function testValid() : void { diff --git a/tests/Validation/Network/EmailTest.php b/tests/Validation/Network/EmailTest.php index cdfccb259..f95a8f184 100644 --- a/tests/Validation/Network/EmailTest.php +++ b/tests/Validation/Network/EmailTest.php @@ -26,6 +26,7 @@ class EmailTest extends \PHPUnit\Framework\TestCase /** * @testdox A email can be validated * @covers phpOMS\Validation\Network\Email + * @group framework */ public function testValidation() : void { diff --git a/tests/Validation/Network/HostnameTest.php b/tests/Validation/Network/HostnameTest.php index acbe7ddec..8e7cd19ee 100644 --- a/tests/Validation/Network/HostnameTest.php +++ b/tests/Validation/Network/HostnameTest.php @@ -26,6 +26,7 @@ class HostnameTest extends \PHPUnit\Framework\TestCase /** * @testdox A hostname can be validated * @covers phpOMS\Validation\Network\Hostname + * @group framework */ public function testHostname() : void { diff --git a/tests/Validation/Network/IpTest.php b/tests/Validation/Network/IpTest.php index cf00d0f15..deb7e601c 100644 --- a/tests/Validation/Network/IpTest.php +++ b/tests/Validation/Network/IpTest.php @@ -26,6 +26,7 @@ class IpTest extends \PHPUnit\Framework\TestCase /** * @testdox A ip can be validated * @covers phpOMS\Validation\Network\Ip + * @group framework */ public function testValid() : void { @@ -38,6 +39,7 @@ class IpTest extends \PHPUnit\Framework\TestCase /** * @testdox A ip4 can be validated * @covers phpOMS\Validation\Network\Ip + * @group framework */ public function testValidIp4() : void { @@ -48,6 +50,7 @@ class IpTest extends \PHPUnit\Framework\TestCase /** * @testdox A ip6 can be validated * @covers phpOMS\Validation\Network\Ip + * @group framework */ public function testValidIp6() : void { diff --git a/tests/Validation/ValidatorTest.php b/tests/Validation/ValidatorTest.php index eb2068608..205b11cfa 100644 --- a/tests/Validation/ValidatorTest.php +++ b/tests/Validation/ValidatorTest.php @@ -29,6 +29,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it contains a substring * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidationContains() : void { @@ -39,6 +40,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox A string can be checked if it has a certain length * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidationLength() : void { @@ -50,6 +52,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox A value can be checked if it is in range * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidationLimit() : void { @@ -61,6 +64,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox A value can be checked to be of a defined type * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidationType() : void { @@ -71,6 +75,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox The error message and error code have the expected default values * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidationError() : void { @@ -82,6 +87,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox Custom validators can be specified in order to validate a value * @covers phpOMS\Validation\Validator + * @group framework */ public function testValidators() : void { @@ -94,6 +100,7 @@ class ValidatorTest extends \PHPUnit\Framework\TestCase /** * @testdox A value can be checked to match a regular expression * @covers phpOMS\Validation\Validator + * @group framework */ public function testMatching() : void { diff --git a/tests/Version/VersionTest.php b/tests/Version/VersionTest.php index 1b203a092..87b591fbc 100644 --- a/tests/Version/VersionTest.php +++ b/tests/Version/VersionTest.php @@ -28,6 +28,7 @@ class VersionTest extends \PHPUnit\Framework\TestCase /** * @testdox Versions can be compared with each other * @covers phpOMS\Version\Version + * @group framework */ public function testVersionCompare() : void { diff --git a/tests/Views/PaginationViewTest.php b/tests/Views/PaginationViewTest.php index 5047ad43c..c242e98da 100644 --- a/tests/Views/PaginationViewTest.php +++ b/tests/Views/PaginationViewTest.php @@ -28,6 +28,7 @@ class PaginationViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The pagination view has the expected default values after initialization * @covers phpOMS\Views\PaginationView + * @group framework */ public function testDefault() : void { @@ -41,6 +42,7 @@ class PaginationViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The max pages can be set and returned * @covers phpOMS\Views\PaginationView + * @group framework */ public function testMaxPagesInputOutput() : void { @@ -53,6 +55,7 @@ class PaginationViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The pages can be set and returned * @covers phpOMS\Views\PaginationView + * @group framework */ public function testPagesInputOutput() : void { @@ -65,6 +68,7 @@ class PaginationViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The page can be set and returned * @covers phpOMS\Views\PaginationView + * @group framework */ public function testPageInputOutput() : void { @@ -77,6 +81,7 @@ class PaginationViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The results can be set and returned * @covers phpOMS\Views\PaginationView + * @group framework */ public function testResultsInputOutput() : void { diff --git a/tests/Views/ViewTest.php b/tests/Views/ViewTest.php index ecf1a4689..45f170801 100644 --- a/tests/Views/ViewTest.php +++ b/tests/Views/ViewTest.php @@ -55,6 +55,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The view has the expected default values after initialization * @covers phpOMS\Views\View + * @group framework */ public function testDefault() : void { @@ -73,6 +74,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The view can output text from the localization manager * @covers phpOMS\Views\View + * @group framework */ public function testGetText() : void { @@ -96,6 +98,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The view can output html escaped text from the localization manager * @covers phpOMS\Views\View + * @group framework */ public function testGetHtml() : void { @@ -119,6 +122,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox View data can be set and returned * @covers phpOMS\Views\View + * @group framework */ public function testDataInputOutput() : void { @@ -131,6 +135,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox View data can be added and returned * @covers phpOMS\Views\View + * @group framework */ public function testDataAdd() : void { @@ -143,6 +148,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox View data cannot be added if it already exists * @covers phpOMS\Views\View + * @group framework */ public function testInvalidDataOverwrite() : void { @@ -156,6 +162,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox View data can be removed * @covers phpOMS\Views\View + * @group framework */ public function testRemove() : void { @@ -168,6 +175,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing view data cannot be removed * @covers phpOMS\Views\View + * @group framework */ public function testInvalidDataRemove() : void { @@ -179,6 +187,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The request can be returned * @covers phpOMS\Views\View + * @group framework */ public function testGetRequest() : void { @@ -191,6 +200,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox The response can be returned * @covers phpOMS\Views\View + * @group framework */ public function testGetResponse() : void { @@ -202,6 +212,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox Text can be html escaped * @covers phpOMS\Views\View + * @group framework */ public function testPrintHtml() : void { @@ -214,6 +225,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox Views can be added and returned from a view * @covers phpOMS\Views\View + * @group framework */ public function testViewInputOutput() : void { @@ -228,6 +240,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing views cannot be returned * @covers phpOMS\Views\View + * @group framework */ public function testInvalidViewGet() : void { @@ -239,6 +252,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox Views can be removed * @covers phpOMS\Views\View + * @group framework */ public function testViewRemove() : void { @@ -252,6 +266,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox None-existing views cannot be removed * @covers phpOMS\Views\View + * @group framework */ public function testInvalidViewRemove() : void { @@ -263,6 +278,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox A view can be forcefully overwritten * @covers phpOMS\Views\View + * @group framework */ public function testOverwritingView() : void { @@ -276,6 +292,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox By default a view is not overwritten * @covers phpOMS\Views\View + * @group framework */ public function testInvalidOverwritingView() : void { @@ -289,6 +306,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox A view template can be rendered * @covers phpOMS\Views\View + * @group framework */ public function testRender() : void { @@ -301,6 +319,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox A view template can be serialized * @covers phpOMS\Views\View + * @group framework */ public function testSerialize() : void { @@ -314,6 +333,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox A view can be turned into an array containing the rendered templates * @covers phpOMS\Views\View + * @group framework */ public function testArray() : void { @@ -337,6 +357,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox Rendering a invalid template throws a PathException * @covers phpOMS\Views\View + * @group framework */ public function testRenderException() : void { @@ -351,6 +372,7 @@ class ViewTest extends \PHPUnit\Framework\TestCase /** * @testdox Serializing a invalid template throws a PathException * @covers phpOMS\Views\View + * @group framework */ public function testSerializeException() : void { diff --git a/tests/phpunit_no_coverage.xml b/tests/phpunit_no_coverage.xml index 195989747..65c18e3d8 100644 --- a/tests/phpunit_no_coverage.xml +++ b/tests/phpunit_no_coverage.xml @@ -32,8 +32,4 @@ - - - -