add test descriptions

This commit is contained in:
Dennis Eichhorn 2019-12-03 19:27:46 +01:00
parent 9787e5d2c8
commit 48f21805cb
284 changed files with 1819 additions and 7 deletions

View File

@ -65,7 +65,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
* *
* @since 1.0.0 * @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 is not working since the key contains :: from http://
//$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite); //$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite);

View File

@ -40,6 +40,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The manager has the expected member variables * @testdox The manager has the expected member variables
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testAttributes() : void public function testAttributes() : void
{ {
@ -52,6 +53,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The manager has the expected default values after initialization * @testdox The manager has the expected default values after initialization
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -63,6 +65,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can be added to the manager * @testdox An account can be added to the manager
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testAddAccount() : void public function testAddAccount() : void
{ {
@ -74,6 +77,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can be retrieved from the manager * @testdox An account can be retrieved from the manager
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testRetrieveAccount() : void 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) * @testdox An account can only be added once to the account manager (no duplication)
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testNoAccountDuplication() : void public function testNoAccountDuplication() : void
{ {
@ -99,6 +104,7 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can be removed from the account manager * @testdox An account can be removed from the account manager
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testRemoveAccount() : void 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 * @testdox Only a valid account can be removed from the manager
* @covers phpOMS\Account\AccountManager<extended> * @covers phpOMS\Account\AccountManager<extended>
* @group framework
*/ */
public function testRemoveOnlyValidAccount() : void public function testRemoveOnlyValidAccount() : void
{ {

View File

@ -24,6 +24,7 @@ use phpOMS\Account\AccountStatus;
class AccountStatusTest extends \PHPUnit\Framework\TestCase class AccountStatusTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class AccountStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class AccountStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -42,6 +42,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The account has the expected member variables * @testdox The account has the expected member variables
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testAttributes() : void public function testAttributes() : void
{ {
@ -68,6 +69,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The account has the expected default values after initialization * @testdox The account has the expected default values after initialization
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -116,6 +118,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The account names can be set and retrieved correctly * @testdox The account names can be set and retrieved correctly
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testSetAndGetAccountNames() : void public function testSetAndGetAccountNames() : void
{ {
@ -141,6 +144,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Groups can be added to an account * @testdox Groups can be added to an account
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testAddAndGetGroup() : void public function testAddAndGetGroup() : void
{ {
@ -154,6 +158,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can have a valid email address * @testdox An account can have a valid email address
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testSetAndGetAccountEmail() : void 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 * @testdox The default status of the account can be changed to a different valid status
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testChangeStatus() : void 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 * @testdox The default type of the account can be changed to a different valid type
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testChangeType() : void public function testChangeType() : void
{ {
@ -193,6 +200,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Account permissions can be added and checked for existence * @testdox Account permissions can be added and checked for existence
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testPermissionHandling() : void public function testPermissionHandling() : void
{ {
@ -227,6 +235,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can have it's own localization * @testdox An account can have it's own localization
* @covers phpOMS\Account\Account<extended> * @covers phpOMS\Account\Account<extended>
* @group framework
*/ */
public function testLocalization() : void 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 * @testdox An account 'last activity' timestamp can be updated and retrieved
* @group framework
*/ */
public function testLastChange() : void public function testLastChange() : void
{ {
@ -252,6 +262,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can only have a valid email * @testdox An account can only have a valid email
* @group framework
*/ */
public function testEmailException() : void public function testEmailException() : void
{ {
@ -263,6 +274,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can only have valid account status * @testdox An account can only have valid account status
* @group framework
*/ */
public function testStatusException() : void public function testStatusException() : void
{ {
@ -280,6 +292,7 @@ class AccountTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An account can only have valid account types * @testdox An account can only have valid account types
* @group framework
*/ */
public function testTypeException() : void public function testTypeException() : void
{ {

View File

@ -24,6 +24,7 @@ use phpOMS\Account\AccountType;
class AccountTypeTest extends \PHPUnit\Framework\TestCase class AccountTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class AccountTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class AccountTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -24,6 +24,7 @@ use phpOMS\Account\GroupStatus;
class GroupStatusTest extends \PHPUnit\Framework\TestCase class GroupStatusTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class GroupStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class GroupStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -31,6 +31,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The group has the expected member variables * @testdox The group has the expected member variables
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testAttributes() : void public function testAttributes() : void
{ {
@ -50,6 +51,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The group has the expected default values after initialization * @testdox The group has the expected default values after initialization
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The group name and description can be set and retrieved correctly
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testSetAndGetGroupNameDescription() : void public function testSetAndGetGroupNameDescription() : void
{ {
@ -93,6 +96,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Group permissions can be added and checked for existence * @testdox Group permissions can be added and checked for existence
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testPermissionHandling() : void 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 * @testdox The default status of the group can be changed to a different valid status
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testChangeStatus() : void public function testChangeStatus() : void
{ {
@ -137,6 +142,7 @@ class GroupTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A group can only have valid group status * @testdox A group can only have valid group status
* @covers phpOMS\Account\Group<extended> * @covers phpOMS\Account\Group<extended>
* @group framework
*/ */
public function testStatusException() : void public function testStatusException() : void
{ {

View File

@ -29,6 +29,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The permission has the expected default values after initialization * @testdox The permission has the expected default values after initialization
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testAbstractDefault() : void public function testAbstractDefault() : void
{ {
@ -67,6 +68,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The unit can be set and returned correctly * @testdox The unit can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testUnitInputOutput() : void public function testUnitInputOutput() : void
{ {
@ -79,6 +81,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The app can be set and returned correctly * @testdox The app can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testAppInputOutput() : void public function testAppInputOutput() : void
{ {
@ -91,6 +94,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The module can be set and returned correctly * @testdox The module can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testModuleInputOutput() : void public function testModuleInputOutput() : void
{ {
@ -103,6 +107,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The from can be set and returned correctly * @testdox The from can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testFromInputOutput() : void public function testFromInputOutput() : void
{ {
@ -115,6 +120,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The type can be set and returned correctly * @testdox The type can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testTypeInputOutput() : void public function testTypeInputOutput() : void
{ {
@ -127,6 +133,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The element can be set and returned correctly * @testdox The element can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testElementInputOutput() : void public function testElementInputOutput() : void
{ {
@ -139,6 +146,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The component can be set and returned correctly * @testdox The component can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testComponentInputOutput() : void public function testComponentInputOutput() : void
{ {
@ -151,6 +159,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The permission can be set and returned correctly * @testdox The permission can be set and returned correctly
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testPermissionInputOutput() : void public function testPermissionInputOutput() : void
{ {
@ -163,6 +172,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Correct permissions are validated * @testdox Correct permissions are validated
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testValidPermission() : void public function testValidPermission() : void
{ {
@ -177,6 +187,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid permissions are not validted * @testdox Invalid permissions are not validted
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testInvalidPermission() : void public function testInvalidPermission() : void
{ {
@ -190,6 +201,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Correct permission flags are validated * @testdox Correct permission flags are validated
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testValidPermissionFlag() : void public function testValidPermissionFlag() : void
{ {
@ -204,6 +216,7 @@ class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid permission flags are not validated * @testdox Invalid permission flags are not validated
* @covers phpOMS\Account\PermissionAbstract * @covers phpOMS\Account\PermissionAbstract
* @group framework
*/ */
public function testInvalidPermissionFlag() : void public function testInvalidPermissionFlag() : void
{ {

View File

@ -24,6 +24,7 @@ use phpOMS\Account\PermissionType;
class PermissionTypeTest extends \PHPUnit\Framework\TestCase class PermissionTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class PermissionTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class PermissionTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -27,6 +27,7 @@ class KmeansTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The clustering of points and dynamic check of new points works as expected * @testdox The clustering of points and dynamic check of new points works as expected
* @covers phpOMS\Algorithm\Clustering\Kmeans * @covers phpOMS\Algorithm\Clustering\Kmeans
* @group framework
*/ */
public function testKmeans() : void public function testKmeans() : void
{ {

View File

@ -26,6 +26,7 @@ class PointTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The point has the expected default values after initialization * @testdox The point has the expected default values after initialization
* @covers phpOMS\Algorithm\Clustering\Point * @covers phpOMS\Algorithm\Clustering\Point
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -41,6 +42,7 @@ class PointTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Coordinates of a point can be set and returned * @testdox Coordinates of a point can be set and returned
* @covers phpOMS\Algorithm\Clustering\Point * @covers phpOMS\Algorithm\Clustering\Point
* @group framework
*/ */
public function testCoordinateInputOutput() : void 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 * @testdox The group/cluster of a point can be set and returned
* @covers phpOMS\Algorithm\Clustering\Point * @covers phpOMS\Algorithm\Clustering\Point
* @group framework
*/ */
public function testGroupInputOutput() : void 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 * @testdox The name of a point can be set and returned
* @covers phpOMS\Algorithm\Clustering\Point * @covers phpOMS\Algorithm\Clustering\Point
* @group framework
*/ */
public function testNameInputOutput() : void public function testNameInputOutput() : void
{ {

View File

@ -28,6 +28,7 @@ class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A value is matched with the minimum quantity of avialable coins. * @testdox A value is matched with the minimum quantity of avialable coins.
* @covers phpOMS\Algorithm\CoinMatching\MinimumCoinProblem * @covers phpOMS\Algorithm\CoinMatching\MinimumCoinProblem
* @group framework
*/ */
public function testMinimumCoins() : void public function testMinimumCoins() : void
{ {

View File

@ -26,6 +26,7 @@ class JobTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The job has the expected values after initialization * @testdox The job has the expected values after initialization
* @covers phpOMS\Algorithm\JobScheduling\Job * @covers phpOMS\Algorithm\JobScheduling\Job
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {

View File

@ -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 * @testdox The optimal job combination is selected to maximize the value/profit without overlapping jobs
* @covers phpOMS\Algorithm\JobScheduling\Weighted * @covers phpOMS\Algorithm\JobScheduling\Weighted
* @group framework
*/ */
public function testNoOverlappingScheduling() : void 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 * @testdox A job list with only one job simply returns one job
* @covers phpOMS\Algorithm\JobScheduling\Weighted * @covers phpOMS\Algorithm\JobScheduling\Weighted
* @group framework
*/ */
public function testSmallList() : void public function testSmallList() : void
{ {

View File

@ -27,6 +27,7 @@ class BackpackTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The backpack has the expected values after initialization * @testdox The backpack has the expected values after initialization
* @covers phpOMS\Algorithm\Knapsack\Backpack * @covers phpOMS\Algorithm\Knapsack\Backpack
* @group framework
*/ */
public function testDefault() : void 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 * @testdox Items can be added to the backpack and automatically change the value and cost the backpack contains
* @covers phpOMS\Algorithm\Knapsack\Backpack * @covers phpOMS\Algorithm\Knapsack\Backpack
* @group framework
*/ */
public function testAddItems() : void public function testAddItems() : void
{ {

View File

@ -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 * @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 * @covers phpOMS\Algorithm\Knapsack\Bounded
* @group framework
*/ */
public function testBackpacking() : void public function testBackpacking() : void
{ {

View File

@ -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] * @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 * @covers phpOMS\Algorithm\Knapsack\Continuous
* @group framework
*/ */
public function testBackpacking() : void 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] * @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 * @covers phpOMS\Algorithm\Knapsack\Continuous
* @group framework
*/ */
public function testBackpackingAlternative() : void public function testBackpackingAlternative() : void
{ {

View File

@ -26,6 +26,7 @@ class ItemTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The item has the expected values after initialization * @testdox The item has the expected values after initialization
* @covers phpOMS\Algorithm\Knapsack\Item * @covers phpOMS\Algorithm\Knapsack\Item
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {

View File

@ -35,6 +35,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node has the expected values after initialization * @testdox The node has the expected values after initialization
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -48,6 +49,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node can be set closed and checked * @testdox The node can be set closed and checked
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testClosedInputOutput() : void public function testClosedInputOutput() : void
{ {
@ -58,6 +60,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node can be set opened and checked * @testdox The node can be set opened and checked
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testOpenedInputOutput() : void public function testOpenedInputOutput() : void
{ {
@ -68,6 +71,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The g value cen be set and returned * @testdox The g value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testGInputOutput() : void public function testGInputOutput() : void
{ {
@ -78,6 +82,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The h value cen be set and returned * @testdox The h value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testHInputOutput() : void public function testHInputOutput() : void
{ {
@ -88,6 +93,7 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The f value cen be set and returned * @testdox The f value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\AStarNode * @covers phpOMS\Algorithm\PathFinding\AStarNode
* @group framework
*/ */
public function testFInputOutput() : void public function testFInputOutput() : void
{ {

View File

@ -70,6 +70,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The correct path is found for diagonal movement * @testdox The correct path is found for diagonal movement
* @covers phpOMS\Algorithm\PathFinding\AStar * @covers phpOMS\Algorithm\PathFinding\AStar
* @group framework
*/ */
public function testPathFindingDiagonal() : void public function testPathFindingDiagonal() : void
{ {
@ -113,6 +114,7 @@ class AStarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The correct path is found for straight movement * @testdox The correct path is found for straight movement
* @covers phpOMS\Algorithm\PathFinding\AStar * @covers phpOMS\Algorithm\PathFinding\AStar
* @group framework
*/ */
public function testPathFindingStraight() : void 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] * @testdox The correct path is found for diagonal movement [one obstacle]
* @covers phpOMS\Algorithm\PathFinding\AStar * @covers phpOMS\Algorithm\PathFinding\AStar
* @group framework
*/ */
public function testPathFindingDiagonalOneObstacle() : void 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] * @testdox The correct path is found for diagonal movement [no obstacle]
* @covers phpOMS\Algorithm\PathFinding\AStar * @covers phpOMS\Algorithm\PathFinding\AStar
* @group framework
*/ */
public function testPathFindingDiagonalNoObstacle() : void public function testPathFindingDiagonalNoObstacle() : void
{ {

View File

@ -31,6 +31,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox By default a grid is empty * @testdox By default a grid is empty
* @covers phpOMS\Algorithm\PathFinding\Grid * @covers phpOMS\Algorithm\PathFinding\Grid
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -41,6 +42,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A grid can be created from an array * @testdox A grid can be created from an array
* @covers phpOMS\Algorithm\PathFinding\Grid * @covers phpOMS\Algorithm\PathFinding\Grid
* @group framework
*/ */
public function testGridFromArray() : void 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 * @testdox A node can be set and returned from the grid
* @covers phpOMS\Algorithm\PathFinding\Grid * @covers phpOMS\Algorithm\PathFinding\Grid
* @group framework
*/ */
public function testNodeInputOutput() : void public function testNodeInputOutput() : void
{ {
@ -83,6 +86,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Out of bounds nodes cannot be returned * @testdox Out of bounds nodes cannot be returned
* @covers phpOMS\Algorithm\PathFinding\Grid::getNode * @covers phpOMS\Algorithm\PathFinding\Grid::getNode
* @group framework
*/ */
public function testOutOfBoundsNode() : void public function testOutOfBoundsNode() : void
{ {
@ -101,6 +105,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox All hoirzontal neighbors can be found correctly * @testdox All hoirzontal neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testStraightHorizontalNeighbors() : void public function testStraightHorizontalNeighbors() : void
{ {
@ -121,6 +126,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox All vertical neighbors can be found correctly * @testdox All vertical neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testStraightVerticalNeighbors() : void 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 * @testdox No straight neighbors are found if no straight neighbors exist
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testStraightNoneNeighbors() : void public function testStraightNoneNeighbors() : void
{ {
@ -159,6 +166,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox All straight neighbors can be found correctly * @testdox All straight neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testStraightAllNeighbors() : void 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 * @testdox All neighbors except blocked diagonal neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalLRNeighbors() : void 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 * @testdox All neighbors except blocked diagonal neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalURNeighbors() : void public function testDiagonalURNeighbors() : void
{ {
@ -229,6 +239,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox No diagonal neighbors are found if no neighbors exist * @testdox No diagonal neighbors are found if no neighbors exist
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalNoneNeighbors() : void public function testDiagonalNoneNeighbors() : void
{ {
@ -247,6 +258,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox All diagonal neighbors can be found correctly * @testdox All diagonal neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalOnlyNeighbors() : void public function testDiagonalOnlyNeighbors() : void
{ {
@ -269,6 +281,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox All neighbors can be found correctly * @testdox All neighbors can be found correctly
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalAllNeighbors() : void 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 * @testdox All neighbors can be found correctly even if one obstacle exists
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalOneObstacleNoBlockNeighbors() : void 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 * @testdox No diagonal neighbors are found if they are blocked on two sides
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalOneObstacleBlockNeighbors() : void 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 * @testdox All neighbors can be found correctly if no obstacles exists
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalOneObstacleAllNeighbors() : void public function testDiagonalOneObstacleAllNeighbors() : void
{ {
@ -369,6 +385,7 @@ class GridTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox No diagonal neighbors are found if one obstacle exists * @testdox No diagonal neighbors are found if one obstacle exists
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalNoObstacleBlockNeighbors() : void 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 * @testdox All neighbors can be found correctly if no obstacles exist
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors * @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
* @group framework
*/ */
public function testDiagonalNoObstacleAllNeighbors() : void public function testDiagonalNoObstacleAllNeighbors() : void
{ {

View File

@ -35,6 +35,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node has the expected values after initialization * @testdox The node has the expected values after initialization
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -49,6 +50,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node can be set closed and checked * @testdox The node can be set closed and checked
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testClosedInputOutput() : void public function testClosedInputOutput() : void
{ {
@ -59,6 +61,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node can be set opened and checked * @testdox The node can be set opened and checked
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testOpenedInputOutput() : void public function testOpenedInputOutput() : void
{ {
@ -69,6 +72,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node can be set tested and checked * @testdox The node can be set tested and checked
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testTestedInputOutput() : void public function testTestedInputOutput() : void
{ {
@ -79,6 +83,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The g value cen be set and returned * @testdox The g value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testGInputOutput() : void public function testGInputOutput() : void
{ {
@ -89,6 +94,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The h value cen be set and returned * @testdox The h value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testHInputOutput() : void public function testHInputOutput() : void
{ {
@ -99,6 +105,7 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The f value cen be set and returned * @testdox The f value cen be set and returned
* @covers phpOMS\Algorithm\PathFinding\JumpPointNode * @covers phpOMS\Algorithm\PathFinding\JumpPointNode
* @group framework
*/ */
public function testFInputOutput() : void public function testFInputOutput() : void
{ {

View File

@ -70,6 +70,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The correct path is found for diagonal movement * @testdox The correct path is found for diagonal movement
* @covers phpOMS\Algorithm\PathFinding\JumpPointSearch * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch
* @group framework
*/ */
public function testPathFindingDiagonal() : void public function testPathFindingDiagonal() : void
{ {
@ -113,6 +114,7 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The correct path is found for straight movement * @testdox The correct path is found for straight movement
* @covers phpOMS\Algorithm\PathFinding\JumpPointSearch * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch
* @group framework
*/ */
public function testPathFindingStraight() : void 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] * @testdox The correct path is found for diagonal movement [one obstacle]
* @covers phpOMS\Algorithm\PathFinding\JumpPointSearch * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch
* @group framework
*/ */
public function testPathFindingDiagonalOneObstacle() : void 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] * @testdox The correct path is found for diagonal movement [no obstacle]
* @covers phpOMS\Algorithm\PathFinding\JumpPointSearch * @covers phpOMS\Algorithm\PathFinding\JumpPointSearch
* @group framework
*/ */
public function testPathFindingDiagonalNoObstacle() : void public function testPathFindingDiagonalNoObstacle() : void
{ {

View File

@ -29,6 +29,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The node has the expected values after initialization * @testdox The node has the expected values after initialization
* @covers phpOMS\Algorithm\PathFinding\Node * @covers phpOMS\Algorithm\PathFinding\Node
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -45,6 +46,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Nodes with equal coordinates are equal * @testdox Nodes with equal coordinates are equal
* @covers phpOMS\Algorithm\PathFinding\Node * @covers phpOMS\Algorithm\PathFinding\Node
* @group framework
*/ */
public function testNodesWithEqualCoordinatesAreEqual() : void public function testNodesWithEqualCoordinatesAreEqual() : void
{ {
@ -57,6 +59,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Nodes with different coordinates are not equal * @testdox Nodes with different coordinates are not equal
* @covers phpOMS\Algorithm\PathFinding\Node * @covers phpOMS\Algorithm\PathFinding\Node
* @group framework
*/ */
public function testNodesWithDifferentCoordinatesAreNotEqual() : void public function testNodesWithDifferentCoordinatesAreNotEqual() : void
{ {
@ -69,6 +72,7 @@ class NodeTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A parent node can be set and returned * @testdox A parent node can be set and returned
* @covers phpOMS\Algorithm\PathFinding\Node * @covers phpOMS\Algorithm\PathFinding\Node
* @group framework
*/ */
public function testParentInputOutput() : void public function testParentInputOutput() : void
{ {

View File

@ -31,6 +31,7 @@ class PathTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The path has the expected values after initialization * @testdox The path has the expected values after initialization
* @covers phpOMS\Algorithm\PathFinding\Path * @covers phpOMS\Algorithm\PathFinding\Path
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -43,6 +44,7 @@ class PathTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The diagonal euclidean path length is calculated correctly * @testdox The diagonal euclidean path length is calculated correctly
* @covers phpOMS\Algorithm\PathFinding\Path * @covers phpOMS\Algorithm\PathFinding\Path
* @group framework
*/ */
public function testDiagonalPathLength() : void public function testDiagonalPathLength() : void
{ {
@ -66,6 +68,7 @@ class PathTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The straight euclidean path length is calculated correctly * @testdox The straight euclidean path length is calculated correctly
* @covers phpOMS\Algorithm\PathFinding\Path * @covers phpOMS\Algorithm\PathFinding\Path
* @group framework
*/ */
public function testStraightPathLength() : void 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 * @testdox The path is correctly expanded in case only jump points are defined
* @covers phpOMS\Algorithm\PathFinding\Path * @covers phpOMS\Algorithm\PathFinding\Path
* @group framework
*/ */
public function testPathExpansion() : void public function testPathExpansion() : void
{ {

View File

@ -40,6 +40,7 @@ class BitonicSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class BubbleSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void 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 * @testdox If no buckets are specified the elements cannot be sorted and an empty result is returned
* @group framework
*/ */
public function testNoBuckets() : void public function testNoBuckets() : void
{ {

View File

@ -41,6 +41,7 @@ class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class CombSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class CycleSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class GnomeSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class HeapSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class InsertionSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class MergeSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class OddEvenSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class PancakeSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class QuickSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class SelectionSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class ShellSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class StoogeSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -41,6 +41,7 @@ class TimSortTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A list with one element returns the list with the element itself * @testdox A list with one element returns the list with the element itself
* @group framework
*/ */
public function testSmallList() : void 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 * @testdox A list ot elements can be sorted in ASC order
* @group framework
*/ */
public function testSortASC() : void 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 * @testdox A list ot elements can be sorted in DESC order
* @group framework
*/ */
public function testSortDESC() : void public function testSortDESC() : void
{ {

View File

@ -26,6 +26,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Application values can be set and returned * @testdox Application values can be set and returned
* @covers phpOMS\ApplicationAbstract * @covers phpOMS\ApplicationAbstract
* @group framework
*/ */
public function testInputOutput() : void public function testInputOutput() : void
{ {
@ -38,6 +39,7 @@ class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Application values cannot be overwritten * @testdox Application values cannot be overwritten
* @covers phpOMS\ApplicationAbstract * @covers phpOMS\ApplicationAbstract
* @group framework
*/ */
public function testInvalidInputOutput() : void public function testInvalidInputOutput() : void
{ {

View File

@ -34,6 +34,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The manager has the expected member variables * @testdox The manager has the expected member variables
* @group framework
*/ */
public function testAttributes() : void public function testAttributes() : void
{ {
@ -45,6 +46,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The manager has the expected default values after initialization * @testdox The manager has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -54,6 +56,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An asset can be added to the manager * @testdox An asset can be added to the manager
* @group framework
*/ */
public function testAddAsset() : void public function testAddAsset() : void
{ {
@ -66,6 +69,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An asset can be retrieved from the manager * @testdox An asset can be retrieved from the manager
* @group framework
*/ */
public function testRetrieveAsset() : void 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) * @testdox An asset can only be added once to the manager (no duplication unless overwritten)
* @group framework
*/ */
public function testInvalidAssetReplacement() : void public function testInvalidAssetReplacement() : void
{ {
@ -88,6 +93,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An asset can be replaced upon request * @testdox An asset can be replaced upon request
* @group framework
*/ */
public function testAssetReplacement() : void public function testAssetReplacement() : void
{ {
@ -106,6 +112,7 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An asset can be removed from the manager * @testdox An asset can be removed from the manager
* @group framework
*/ */
public function testAssetRemove() : void public function testAssetRemove() : void
{ {

View File

@ -24,6 +24,7 @@ use phpOMS\Asset\AssetType;
class AssetTypeTest extends \PHPUnit\Framework\TestCase class AssetTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class AssetTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class AssetTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -27,6 +27,7 @@ class AuthTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The default http session doesn't authenticate an account * @testdox The default http session doesn't authenticate an account
* @group framework
*/ */
public function testAuthWithEmptyHttpSession() : void public function testAuthWithEmptyHttpSession() : void
{ {

View File

@ -24,6 +24,7 @@ use phpOMS\Auth\LoginReturnType;
class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -32,6 +33,7 @@ class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -40,6 +42,7 @@ class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -26,6 +26,7 @@ class AutoloaderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Classes can be checked for existence * @testdox Classes can be checked for existence
* @covers phpOMS\Autoloader * @covers phpOMS\Autoloader
* @group framework
*/ */
public function testAutoloader() : void public function testAutoloader() : void
{ {

View File

@ -25,6 +25,7 @@ class DepreciationTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The straight line deprecition and reverse value calculations are correct * @testdox The straight line deprecition and reverse value calculations are correct
* @group framework
*/ */
public function testStraightLine() : void 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 * @testdox The arithmetic degressiv deprecition and reverse value calculations are correct
* @group framework
*/ */
public function testArithmeticDegressivDepreciation() : void 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 * @testdox The arithmetic progressiv deprecition and reverse value calculations are correct
* @group framework
*/ */
public function testArithmeticProgressivDepreciation() : void 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 * @testdox The geometric progressiv deprecition and reverse value calculations are correct
* @group framework
*/ */
public function testGeometricProgressivDepreciation() : void 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 * @testdox The geometric degressiv deprecition and reverse value calculations are correct
* @group framework
*/ */
public function testGeometricDegressivDepreciation() : void public function testGeometricDegressivDepreciation() : void
{ {

View File

@ -25,6 +25,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The annual percentage yield (APY) and reverse value calculations are correct * @testdox The annual percentage yield (APY) and reverse value calculations are correct
* @group framework
*/ */
public function testAnnualPercentageYield() : void 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 * @testdox The future value of annuity (FVA) and reverse value calculations are correct
* @group framework
*/ */
public function testFutureValueOfAnnuity() : void 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 * @testdox The future value of annuity continuous compounding (FVACC) and reverse value calculations are correct
* @group framework
*/ */
public function testFutureValueOfAnnuityContinuousCompounding() : void 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 * @testdox The annuity payment from the present value (PV) and reverse value calculations are correct
* @group framework
*/ */
public function testAnnuityPaymentPV() : void 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 * @testdox The annuity payment from the future value (FV) and reverse value calculations are correct
* @group framework
*/ */
public function testAnnuityPaymentFV() : void 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 * @testdox The annuity payment from the present value (PV) and reverse value calculations are correct
* @group framework
*/ */
public function testAnnutiyPaymentFactorPV() : void public function testAnnutiyPaymentFactorPV() : void
{ {
@ -123,6 +129,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The present value of the annuity is correct * @testdox The present value of the annuity is correct
* @group framework
*/ */
public function testPresentValueOfAnnuity() : void 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 * @testdox The present value annuity factor of the annuity is correct
* @group framework
*/ */
public function testPresentValueAnnuityFactor() : void public function testPresentValueAnnuityFactor() : void
{ {
@ -155,6 +163,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The due present value the annuity is correct * @testdox The due present value the annuity is correct
* @group framework
*/ */
public function testPresentValueOfAnnuityDue() : void public function testPresentValueOfAnnuityDue() : void
{ {
@ -173,6 +182,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The due future value the annuity is correct * @testdox The due future value the annuity is correct
* @group framework
*/ */
public function testFutureValueOfAnnuityDue() : void 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 * @testdox The relative market share calculations by shares and ales are correct
* @group framework
*/ */
public function testRelativeMarketShare() : void public function testRelativeMarketShare() : void
{ {
@ -200,6 +211,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The asset ratio calculations are correct * @testdox The asset ratio calculations are correct
* @group framework
*/ */
public function testAssetRatios() : void 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 * @testdox Balance ratio calculations for DII, Receivables/Turnover, and more are correct
* @group framework
*/ */
public function testBalanceRatios() : void 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 * @testdox Dept ratios for dept coverage, dept to equity and dept to income are correct
* @group framework
*/ */
public function testDeptRatios() : void 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) * @testdox Return on balance statement positions are correct (e.g. return on assets, on equity)
* @group framework
*/ */
public function testReturnOnBalancePositions() : void 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) * @testdox Balance / P&L ratios are correct (e.g. inventory turnover, net profit margin)
* @group framework
*/ */
public function testBalancePLRatios() : void public function testBalancePLRatios() : void
{ {
@ -263,6 +279,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Compound calculations for interest, principal and periods are correct * @testdox Compound calculations for interest, principal and periods are correct
* @group framework
*/ */
public function testCompound() : void 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 * @testdox Continuous compound calculations for interest, principal and periods are correct
* @group framework
*/ */
public function testContinuousCompounding() : void public function testContinuousCompounding() : void
{ {
@ -300,6 +318,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Calculations for interest, principal and periods are correct * @testdox Calculations for interest, principal and periods are correct
* @group framework
*/ */
public function testSimpleInterest() : void public function testSimpleInterest() : void
{ {
@ -317,6 +336,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The descounted payback period is correct * @testdox The descounted payback period is correct
* @group framework
*/ */
public function testDiscountedPaybackPeriod() : void 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 * @testdox Test the correct calculation of the growth rate in order to double and vice versa
* @group framework
*/ */
public function testDoublingTime() : void 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 * @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 public function testDoublingTimeContinuousCompounding() : void
{ {
@ -351,6 +373,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Calculations for equivalent annual annuity are correct * @testdox Calculations for equivalent annual annuity are correct
* @group framework
*/ */
public function testEquivalentAnnualAnnuity() : void 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) * @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 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) * @testdox The free cash flow to firm calculation is correct (how much cash is available after expenses)
* @group framework
*/ */
public function testFreeCashFlowToFirm() : void public function testFreeCashFlowToFirm() : void
{ {
@ -393,6 +418,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The future value calculation is correct * @testdox The future value calculation is correct
* @group framework
*/ */
public function testFutureValue() : void public function testFutureValue() : void
{ {
@ -405,6 +431,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The future value calculation including continuous compounding is correct * @testdox The future value calculation including continuous compounding is correct
* @group framework
*/ */
public function testFutureValueContinuousCompounding() : void public function testFutureValueContinuousCompounding() : void
{ {
@ -417,6 +444,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The future value factor calculation is correct * @testdox The future value factor calculation is correct
* @group framework
*/ */
public function testValueFactor() : void 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 * @testdox The calculation of the geometric mean of multiple return rates is correct
* @group framework
*/ */
public function testGeometricMeanReturn() : void 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 * @testdox The calculation of the future value of the growing annuity is correct
* @group framework
*/ */
public function testGrowingAnnuityFV() : void 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 * @testdox The calculation of the payment based on the present value of the growing annuity is correct
* @group framework
*/ */
public function testGrowingAnnuityPaymentPV() : void 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 * @testdox The calculation of the payment based on the future value of the growing annuity is correct
* @group framework
*/ */
public function testGrowingAnnuityPaymentFV() : void 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 * @testdox The calculation of the present value of the growing annuity is correct
* @group framework
*/ */
public function testGrowingAnnuityPV() : void 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 * @testdox The calculation of the present value of the growing perpetuity is correct
* @group framework
*/ */
public function testGrowingPerpetuityPV() : void public function testGrowingPerpetuityPV() : void
{ {
@ -503,6 +537,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The calculation of the net present value is correct * @testdox The calculation of the net present value is correct
* @group framework
*/ */
public function testNetPresentValue() : void 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 * @testdox No cash flows in the net prsent value calculation result in 0
* @group framework
*/ */
public function testEmptyNetPresentValue() : void 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 * @testdox The calculation of the real rate of return is correct
* @group framework
*/ */
public function testRealRateOfReturn() : void public function testRealRateOfReturn() : void
{ {
@ -533,6 +570,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The calculation of the net working capital is correct * @testdox The calculation of the net working capital is correct
* @group framework
*/ */
public function testNetWorkingCapital() : void 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 * @testdox The periods to reach a future value based on the present value is calculated correctly
* @group framework
*/ */
public function testNumberOfPeriodsPVFV() : void public function testNumberOfPeriodsPVFV() : void
{ {
@ -553,6 +592,7 @@ class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The calculation of the present value is correct * @testdox The calculation of the present value is correct
* @group framework
*/ */
public function testPresentValue() : void 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 * @testdox The calculation of the present value using continuous compounding is correct
* @group framework
*/ */
public function testPresentValueContinuousCompounding() : void public function testPresentValueContinuousCompounding() : void
{ {

View File

@ -25,6 +25,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The loan to deposit ratio is correct * @testdox The loan to deposit ratio is correct
* @group framework
*/ */
public function testLoanToDepositRatio() : void public function testLoanToDepositRatio() : void
{ {
@ -33,6 +34,7 @@ class LoanTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The loan to value ratio is correct * @testdox The loan to value ratio is correct
* @group framework
*/ */
public function testLoanToValueRatio() : void 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 * @testdox The balloon loan payments are correct for a given balloon
* @group framework
*/ */
public function testPaymentsOnBalloonLoan() : void 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 * @testdox The balloon loan residual value (balloon) is correct for given payments
* @group framework
*/ */
public function testBalloonBalanceOfLoan() : void 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] * @testdox The loan payments are correct for a given interest rate and period [continuous compounding]
* @group framework
*/ */
public function testLoanPayment() : void 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] * @testdox The residual value is correct for a given payment amount, interest rate and period [continuous compounding]
* @group framework
*/ */
public function testRemainingBalanceLoan() : void public function testRemainingBalanceLoan() : void
{ {

View File

@ -25,6 +25,7 @@ class LorenzkurveTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The gini coefficient calculation is correct * @testdox The gini coefficient calculation is correct
* @group framework
*/ */
public function testGiniCoefficient() : void public function testGiniCoefficient() : void
{ {

View File

@ -25,6 +25,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The calculation of various stock/bond related ratios/yields is correct * @testdox The calculation of various stock/bond related ratios/yields is correct
* @group framework
*/ */
public function testRatios() : void 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 * @testdox The calculation of the bond yield based on face value and price is correct
* @group framework
*/ */
public function testBondEquivalentYield() : void 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 * @testdox The calculation of the return of the capital asset pricing model is correct
* @group framework
*/ */
public function testExpectedReturnCAPM() : void public function testExpectedReturnCAPM() : void
{ {
@ -58,6 +61,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The capital gains yield calculation is correct * @testdox The capital gains yield calculation is correct
* @group framework
*/ */
public function testCapitalGainsYield() : void public function testCapitalGainsYield() : void
{ {
@ -66,6 +70,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The diluted earnings per share calculation is correct * @testdox The diluted earnings per share calculation is correct
* @group framework
*/ */
public function testDilutedEarningsPerShare() : void 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 * @testdox The calculation of the absolute return for multiple holding periods is correct
* @group framework
*/ */
public function testHoldingPeriodReturn() : void public function testHoldingPeriodReturn() : void
{ {
@ -84,6 +90,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The tax equivalent yield is calculated correctly * @testdox The tax equivalent yield is calculated correctly
* @group framework
*/ */
public function testTaxEquivalentYield() : void public function testTaxEquivalentYield() : void
{ {
@ -95,6 +102,7 @@ class StockBondsTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The net asset value is calculated correctly * @testdox The net asset value is calculated correctly
* @group framework
*/ */
public function testNetAssetValue() : void 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 * @testdox The calculation of the present value of a stock with constant growth rate is correct
* @group framework
*/ */
public function testPresentValueOfStockConstantGrowth() : void 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 * @testdox The total stock return including dividends and sales price is correct
* @group framework
*/ */
public function testTotalStockReturn() : void 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 * @testdox The calculation of the yield of a bond is correct
* @group framework
*/ */
public function testYieldToMaturity() : void 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 * @testdox The calculation of value of the zero coupon bond is correct
* @group framework
*/ */
public function testZeroCouponBondValue() : void 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 * @testdox The calculation of the yield of a zero coupon bond is correct
* @group framework
*/ */
public function testZeroCouponBondEffectiveYield() : void public function testZeroCouponBondEffectiveYield() : void
{ {

View File

@ -25,6 +25,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox Test the correctnes of the customer retention calculation * @testdox Test the correctnes of the customer retention calculation
* @group framework
*/ */
public function testCustomerRetention() : void public function testCustomerRetention() : void
{ {

View File

@ -25,6 +25,7 @@ class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The net promoter has the expected default values after initialization * @testdox The net promoter has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The net promotor score, detractors, passives and promotors are correct
* @group framework
*/ */
public function testScoreDetractorPassivePromotor() : void public function testScoreDetractorPassivePromotor() : void
{ {

View File

@ -25,6 +25,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox Test correctness of the ABC calculation * @testdox Test correctness of the ABC calculation
* @group framework
*/ */
public function testABCMetric() : void public function testABCMetric() : void
{ {
@ -33,6 +34,7 @@ class MetricsTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Test correctness of CRAP score * @testdox Test correctness of CRAP score
* @group framework
*/ */
public function testCRAPMetric() : void public function testCRAPMetric() : void
{ {

View File

@ -24,6 +24,7 @@ class MarketShareEstimationTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The rank calculated with Zipf is correct * @testdox The rank calculated with Zipf is correct
* @group framework
*/ */
public function testZipfRank() : void 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 * @testdox The market share by rank calculated with Zipf is correct
* @group framework
*/ */
public function testZipfShare() : void public function testZipfShare() : void
{ {

View File

@ -28,6 +28,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The option helper has the expected attributes * @testdox The option helper has the expected attributes
* @group framework
*/ */
public function testOptionTraitMembers() : void 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 * @testdox The option helper has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -54,6 +56,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Options can be added to the helper * @testdox Options can be added to the helper
* @group framework
*/ */
public function testAdd() : void public function testAdd() : void
{ {
@ -68,6 +71,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Options can be overwritten/changed * @testdox Options can be overwritten/changed
* @group framework
*/ */
public function testOverwrite() : void 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 * @testdox Multiple options can be added to the helper in one go
* @group framework
*/ */
public function testAddMultiple() : void public function testAddMultiple() : void
{ {
@ -118,6 +123,7 @@ class OptionsTraitTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Multiple options can be retrieved * @testdox Multiple options can be retrieved
* @group framework
*/ */
public function testGetMultiple() : void public function testGetMultiple() : void
{ {

View File

@ -26,6 +26,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The pool has the expected default values after initialization * @testdox The pool has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -37,6 +38,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox New cache connections can be added to the pool * @testdox New cache connections can be added to the pool
* @group framework
*/ */
public function testAdd() : void 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 * @testdox Cache connections cannot be overwritten with a different cache connection
* @group framework
*/ */
public function testOverwrite() : void public function testOverwrite() : void
{ {
@ -58,6 +61,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache connections can be accessed with an identifier * @testdox Cache connections can be accessed with an identifier
* @group framework
*/ */
public function testGet() : void 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 * @testdox By default a null cache is returned if no cache connection exists for the identifier
* @group framework
*/ */
public function testGetDefault() : void 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 * @testdox Cache connections can created by the pool and automatically get added but not overwritten
* @group framework
*/ */
public function testCreate() : void public function testCreate() : void
{ {
@ -92,6 +98,7 @@ class CachePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache connections can be removed from the pool * @testdox Cache connections can be removed from the pool
* @group framework
*/ */
public function testRemove() : void 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 * @testdox Removing a cache with an invalid identifier will result in no actions
* @group framework
*/ */
public function testRemoveInvalid() : void public function testRemoveInvalid() : void
{ {

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\CacheStatus;
class CacheStatusTest extends \PHPUnit\Framework\TestCase class CacheStatusTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class CacheStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class CacheStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\CacheType;
class CacheTypeTest extends \PHPUnit\Framework\TestCase class CacheTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class CacheTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class CacheTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Cache\Connection\CacheValueType;
class CacheValueTypeTest extends \PHPUnit\Framework\TestCase class CacheValueTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class CacheValueTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class CacheValueTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -26,6 +26,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The file cache can be created * @testdox The file cache can be created
* @group framework
*/ */
public function testCreateFileCache() : void public function testCreateFileCache() : void
{ {
@ -37,6 +38,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The memcached cache can be created * @testdox The memcached cache can be created
* @group framework
*/ */
public function testCreateMemCached() : void public function testCreateMemCached() : void
{ {
@ -54,6 +56,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The redis cache can be created * @testdox The redis cache can be created
* @group framework
*/ */
public function testCreateRedisCache() : void public function testCreateRedisCache() : void
{ {
@ -71,6 +74,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An invalid cache type results in an exception * @testdox An invalid cache type results in an exception
* @group framework
*/ */
public function testInvalidCacheType() : void public function testInvalidCacheType() : void
{ {

View File

@ -49,6 +49,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The file cache connection has the expected default values after initialization * @testdox The file cache connection has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testDefault() : void 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) * @testdox The connection to a dedicated cache directory can be established (none-exising directories get created)
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -80,6 +82,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Different cache data (types) can be set and returned * @testdox Different cache data (types) can be set and returned
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testSetInputOutput() : void public function testSetInputOutput() : void
{ {
@ -111,6 +114,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data can bet added and returned * @testdox Cache data can bet added and returned
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testAddInputOutput() : void public function testAddInputOutput() : void
{ {
@ -121,6 +125,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data cannot be added if it already exists * @testdox Cache data cannot be added if it already exists
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -132,6 +137,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be replaced * @testdox Existing cache data can be replaced
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testReplace() : void public function testReplace() : void
{ {
@ -145,6 +151,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing cache data cannot be replaced * @testdox None-existing cache data cannot be replaced
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testInvalidReplace() : void public function testInvalidReplace() : void
{ {
@ -154,6 +161,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be deleted * @testdox Existing cache data can be deleted
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testDelete() : void public function testDelete() : void
{ {
@ -167,6 +175,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache correctly handles general cache information * @testdox The cache correctly handles general cache information
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testStats() : void public function testStats() : void
{ {
@ -189,6 +198,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache can be flushed * @testdox The cache can be flushed
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testFlush() : void 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 * @testdox Cache data can be set and returned with expiration limits
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testUnexpiredInputOutput() : void public function testUnexpiredInputOutput() : void
{ {
@ -224,6 +235,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data cannot be returned * @testdox Expired cache data cannot be returned
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testExpiredInputOutput() : void public function testExpiredInputOutput() : void
{ {
@ -237,6 +249,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data can be forced to return * @testdox Expired cache data can be forced to return
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testForceExpiredInputOutput() : void 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 * @testdox Unexpired cache data connot be delete if lower expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testInvalidDeleteUnexpired() : void 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 * @testdox Expired cache data can be deleted if equal expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testDeleteExpired() : void 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 * @testdox Unexpired data can be force deleted with lower expiration date
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testForceDeleteUnexpired() : void public function testForceDeleteUnexpired() : void
{ {
@ -281,6 +297,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cach data can be flushed by expiration date * @testdox Cach data can be flushed by expiration date
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testFlushExpired() : void public function testFlushExpired() : void
{ {
@ -294,6 +311,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A bad cache status will prevent all cache actions * @testdox A bad cache status will prevent all cache actions
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testBadCacheStatus() : void public function testBadCacheStatus() : void
{ {
@ -312,6 +330,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid cache connection will throw an InvalidConnectionConfigException * @testdox A invalid cache connection will throw an InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testInvalidCachePath() : void public function testInvalidCachePath() : void
{ {
@ -323,6 +342,7 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid data type will throw an InvalidArgumentException * @testdox A invalid data type will throw an InvalidArgumentException
* @covers phpOMS\DataStorage\Cache\Connection\FileCache * @covers phpOMS\DataStorage\Cache\Connection\FileCache
* @group framework
*/ */
public function testInvalidDataType() : void public function testInvalidDataType() : void
{ {

View File

@ -42,6 +42,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The memcached connection has the expected default values after initialization * @testdox The memcached connection has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testDefault() : void 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) * @testdox The connection to a cache can be established (none-exising directories get created)
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -77,6 +79,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Different cache data (types) can be set and returned * @testdox Different cache data (types) can be set and returned
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testSetInputOutput() : void public function testSetInputOutput() : void
{ {
@ -108,6 +111,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data can bet added and returned * @testdox Cache data can bet added and returned
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testAddInputOutput() : void public function testAddInputOutput() : void
{ {
@ -118,6 +122,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data cannot be added if it already exists * @testdox Cache data cannot be added if it already exists
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -129,6 +134,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be replaced * @testdox Existing cache data can be replaced
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testReplace() : void public function testReplace() : void
{ {
@ -142,6 +148,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing cache data cannot be replaced * @testdox None-existing cache data cannot be replaced
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidReplace() : void public function testInvalidReplace() : void
{ {
@ -151,6 +158,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be deleted * @testdox Existing cache data can be deleted
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testDelete() : void public function testDelete() : void
{ {
@ -164,6 +172,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache correctly handles general cache information * @testdox The cache correctly handles general cache information
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testStats() : void public function testStats() : void
{ {
@ -186,6 +195,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache can be flushed * @testdox The cache can be flushed
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testFlush() : void 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 * @testdox Cache data can be set and returned with expiration limits
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testUnexpiredInputOutput() : void public function testUnexpiredInputOutput() : void
{ {
@ -221,6 +232,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data cannot be returned * @testdox Expired cache data cannot be returned
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testExpiredInputOutput() : void public function testExpiredInputOutput() : void
{ {
@ -234,6 +246,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data can be forced to return * @testdox Expired cache data can be forced to return
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testForceExpiredInputOutput() : void 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 * @testdox Unexpired cache data connot be delete if lower expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidDeleteUnexpired() : void 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 * @testdox Expired cache data can be deleted if equal expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testDeleteExpired() : void 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 * @testdox Unexpired data can be force deleted with lower expiration date
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testForceDeleteUnexpired() : void public function testForceDeleteUnexpired() : void
{ {
@ -278,6 +294,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cach data can be flushed by expiration date * @testdox Cach data can be flushed by expiration date
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testFlushExpired() : void public function testFlushExpired() : void
{ {
@ -291,6 +308,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A bad cache status will prevent all cache actions * @testdox A bad cache status will prevent all cache actions
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testBadCacheStatus() : void public function testBadCacheStatus() : void
{ {
@ -309,6 +327,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid data type will throw an InvalidArgumentException * @testdox A invalid data type will throw an InvalidArgumentException
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidDataType() : void public function testInvalidDataType() : void
{ {
@ -320,6 +339,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid host throws a InvalidConnectionConfigException * @testdox A invalid host throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidCacheHost() : void public function testInvalidCacheHost() : void
{ {
@ -334,6 +354,7 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid port throws a InvalidConnectionConfigException * @testdox A invalid port throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\MemCached * @covers phpOMS\DataStorage\Cache\Connection\MemCached
* @group framework
*/ */
public function testInvalidCachePort() : void public function testInvalidCachePort() : void
{ {

View File

@ -27,6 +27,7 @@ class NullCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The default cache has the expected default values after initialization * @testdox The default cache has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testCache() : void public function testCache() : void
{ {

View File

@ -42,6 +42,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The redis cache connection has the expected default values after initialization * @testdox The redis cache connection has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testDefault() : void 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) * @testdox The connection to a cache can be established (none-exising directories get created)
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -78,6 +80,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Different cache data (types) can be set and returned * @testdox Different cache data (types) can be set and returned
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testSetInputOutput() : void public function testSetInputOutput() : void
{ {
@ -109,6 +112,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data can bet added and returned * @testdox Cache data can bet added and returned
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testAddInputOutput() : void public function testAddInputOutput() : void
{ {
@ -119,6 +123,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cache data cannot be added if it already exists * @testdox Cache data cannot be added if it already exists
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -130,6 +135,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be replaced * @testdox Existing cache data can be replaced
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testReplace() : void public function testReplace() : void
{ {
@ -143,6 +149,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing cache data cannot be replaced * @testdox None-existing cache data cannot be replaced
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidReplace() : void public function testInvalidReplace() : void
{ {
@ -152,6 +159,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing cache data can be deleted * @testdox Existing cache data can be deleted
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testDelete() : void public function testDelete() : void
{ {
@ -165,6 +173,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache correctly handles general cache information * @testdox The cache correctly handles general cache information
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testStats() : void public function testStats() : void
{ {
@ -187,6 +196,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cache can be flushed * @testdox The cache can be flushed
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testFlush() : void 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 * @testdox Cache data can be set and returned with expiration limits
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testUnexpiredInputOutput() : void public function testUnexpiredInputOutput() : void
{ {
@ -222,6 +233,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data cannot be returned * @testdox Expired cache data cannot be returned
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testExpiredInputOutput() : void public function testExpiredInputOutput() : void
{ {
@ -235,6 +247,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Expired cache data can be forced to return * @testdox Expired cache data can be forced to return
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testForceExpiredInputOutput() : void 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 * @testdox Unexpired cache data connot be delete if lower expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidDeleteUnexpired() : void 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 * @testdox Expired cache data can be deleted if equal expiration is defined
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testDeleteExpired() : void 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 * @testdox Unexpired data can be force deleted with lower expiration date
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testForceDeleteUnexpired() : void public function testForceDeleteUnexpired() : void
{ {
@ -279,6 +295,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cach data can be flushed by expiration date * @testdox Cach data can be flushed by expiration date
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testFlushExpired() : void public function testFlushExpired() : void
{ {
@ -292,6 +309,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A bad cache status will prevent all cache actions * @testdox A bad cache status will prevent all cache actions
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testBadCacheStatus() : void public function testBadCacheStatus() : void
{ {
@ -311,6 +329,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid host throws a InvalidConnectionConfigException * @testdox A invalid host throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidCacheHost() : void public function testInvalidCacheHost() : void
{ {
@ -325,6 +344,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid port throws a InvalidConnectionConfigException * @testdox A invalid port throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidCachePort() : void public function testInvalidCachePort() : void
{ {
@ -339,6 +359,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database throws a InvalidConnectionConfigException * @testdox A invalid database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache * @covers phpOMS\DataStorage\Cache\Connection\RedisCache
* @group framework
*/ */
public function testInvalidCacheDatabase() : void public function testInvalidCacheDatabase() : void
{ {

View File

@ -32,6 +32,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The cookie jar has the expected default values and functionality after initialization * @testdox The cookie jar has the expected default values and functionality after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -42,6 +43,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cookie values can be set and returned * @testdox Cookie values can be set and returned
* @group framework
*/ */
public function testCookieInputOutput() : void public function testCookieInputOutput() : void
{ {
@ -54,6 +56,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cookie values cannot be overwritten * @testdox Cookie values cannot be overwritten
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -63,6 +66,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cookie values can be forced to overwrite * @testdox Cookie values can be forced to overwrite
* @group framework
*/ */
public function testOverwrite() : void public function testOverwrite() : void
{ {
@ -72,6 +76,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Cookie values can be removed * @testdox Cookie values can be removed
* @group framework
*/ */
public function testRemove() : void public function testRemove() : void
{ {
@ -81,6 +86,7 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing cookie values cannot be removed * @testdox None-existing cookie values cannot be removed
* @group framework
*/ */
public function testInvalidRemove() : void 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 * @testdox Values cannot be removed from a locked cookie and throws a LockException
* @group framework
*/ */
public function testDeleteLocked() : void 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 * @testdox A locked coockie cannot be saved and throws a LockException
* @group framework
*/ */
public function testSaveLocked() : void public function testSaveLocked() : void
{ {

View File

@ -30,6 +30,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The mysql connection can be successfully created * @testdox The mysql connection can be successfully created
* @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory
* @group framework
*/ */
public function testCreateMysql() : void public function testCreateMysql() : void
{ {
@ -50,6 +51,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The postgresql connection can be successfully created * @testdox The postgresql connection can be successfully created
* @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory
* @group framework
*/ */
public function testCreatePostgres() : void public function testCreatePostgres() : void
{ {
@ -70,6 +72,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The sqlserver connection can be successfully created * @testdox The sqlserver connection can be successfully created
* @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory
* @group framework
*/ */
public function testCreateSqlsrv() : void public function testCreateSqlsrv() : void
{ {
@ -90,6 +93,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The sqlite connection can be successfully created * @testdox The sqlite connection can be successfully created
* @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory
* @group framework
*/ */
public function testCreateSqlite() : void public function testCreateSqlite() : void
{ {
@ -110,6 +114,7 @@ class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database type throws a InvalidArgumentException * @testdox A invalid database type throws a InvalidArgumentException
* @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory * @covers phpOMS\DataStorage\Database\Connection\ConnectionFactory
* @group framework
*/ */
public function testInvalidDatabaseType() : void public function testInvalidDatabaseType() : void
{ {

View File

@ -36,6 +36,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Valid mysql connection data result in a valid database connection * @testdox Valid mysql connection data result in a valid database connection
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -51,6 +52,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database type throws a InvalidConnectionConfigException * @testdox A missing database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidDatabaseType() : void public function testInvalidDatabaseType() : void
{ {
@ -65,6 +67,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database host throws a InvalidConnectionConfigException * @testdox A missing database host throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidHost() : void public function testInvalidHost() : void
{ {
@ -79,6 +82,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database port throws a InvalidConnectionConfigException * @testdox A missing database port throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidPort() : void public function testInvalidPort() : void
{ {
@ -93,6 +97,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database throws a InvalidConnectionConfigException * @testdox A missing database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidDatabase() : void public function testInvalidDatabase() : void
{ {
@ -107,6 +112,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database login throws a InvalidConnectionConfigException * @testdox A missing database login throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidLogin() : void public function testInvalidLogin() : void
{ {
@ -121,6 +127,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database password throws a InvalidConnectionConfigException * @testdox A missing database password throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidPassword() : void public function testInvalidPassword() : void
{ {
@ -135,6 +142,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database type throws a InvalidConnectionConfigException * @testdox A invalid database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidDatabaseTypeName() : void public function testInvalidDatabaseTypeName() : void
{ {
@ -149,6 +157,7 @@ class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database throws a InvalidConnectionConfigException * @testdox A invalid database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection * @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
* @group framework
*/ */
public function testInvalidDatabaseName() : void public function testInvalidDatabaseName() : void
{ {

View File

@ -35,6 +35,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Valid postgresql connection data result in a valid database connection * @testdox Valid postgresql connection data result in a valid database connection
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -49,6 +50,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database type throws a InvalidConnectionConfigException * @testdox A missing database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidDatabaseType() : void public function testInvalidDatabaseType() : void
{ {
@ -62,6 +64,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database host throws a InvalidConnectionConfigException * @testdox A missing database host throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidHost() : void public function testInvalidHost() : void
{ {
@ -75,6 +78,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database port throws a InvalidConnectionConfigException * @testdox A missing database port throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidPort() : void public function testInvalidPort() : void
{ {
@ -88,6 +92,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database throws a InvalidConnectionConfigException * @testdox A missing database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidDatabase() : void public function testInvalidDatabase() : void
{ {
@ -101,6 +106,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database login throws a InvalidConnectionConfigException * @testdox A missing database login throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidLogin() : void public function testInvalidLogin() : void
{ {
@ -114,6 +120,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database password throws a InvalidConnectionConfigException * @testdox A missing database password throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidPassword() : void public function testInvalidPassword() : void
{ {
@ -127,6 +134,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database type throws a InvalidConnectionConfigException * @testdox A invalid database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection * @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
* @group framework
*/ */
public function testInvalidDatabaseTypeName() : void public function testInvalidDatabaseTypeName() : void
{ {
@ -139,6 +147,7 @@ class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* todo: apparently this doesn't throw an exception in postgresql?! * todo: apparently this doesn't throw an exception in postgresql?!
* @group framework
*/ */
public function testInvalidDatabaseName() : void public function testInvalidDatabaseName() : void
{ {

View File

@ -35,6 +35,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Valid sqlite connection data result in a valid database connection * @testdox Valid sqlite connection data result in a valid database connection
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -47,6 +48,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database type throws a InvalidConnectionConfigException * @testdox A missing database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
* @group framework
*/ */
public function testInvalidDatabaseType() : void public function testInvalidDatabaseType() : void
{ {
@ -60,6 +62,7 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database throws a InvalidConnectionConfigException * @testdox A missing database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection * @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
* @group framework
*/ */
public function testInvalidDatabase() : void public function testInvalidDatabase() : void
{ {

View File

@ -36,6 +36,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Valid sqlserver connection data result in a valid database connection * @testdox Valid sqlserver connection data result in a valid database connection
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testConnect() : void public function testConnect() : void
{ {
@ -50,6 +51,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database type throws a InvalidConnectionConfigException * @testdox A missing database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidDatabaseType() : void public function testInvalidDatabaseType() : void
{ {
@ -63,6 +65,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database host throws a InvalidConnectionConfigException * @testdox A missing database host throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidHost() : void public function testInvalidHost() : void
{ {
@ -76,6 +79,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database port throws a InvalidConnectionConfigException * @testdox A missing database port throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidPort() : void public function testInvalidPort() : void
{ {
@ -89,6 +93,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database throws a InvalidConnectionConfigException * @testdox A missing database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidDatabase() : void public function testInvalidDatabase() : void
{ {
@ -102,6 +107,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database login throws a InvalidConnectionConfigException * @testdox A missing database login throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidLogin() : void public function testInvalidLogin() : void
{ {
@ -115,6 +121,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A missing database password throws a InvalidConnectionConfigException * @testdox A missing database password throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidPassword() : void public function testInvalidPassword() : void
{ {
@ -128,6 +135,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database type throws a InvalidConnectionConfigException * @testdox A invalid database type throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidDatabaseTypeName() : void public function testInvalidDatabaseTypeName() : void
{ {
@ -141,6 +149,7 @@ class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid database throws a InvalidConnectionConfigException * @testdox A invalid database throws a InvalidConnectionConfigException
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection * @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
* @group framework
*/ */
public function testInvalidDatabaseName() : void public function testInvalidDatabaseName() : void
{ {

View File

@ -152,6 +152,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The datamapper has the expected default values after initialization * @testdox The datamapper has the expected default values after initialization
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The datamapper sucessfully creates a database entry of a model
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testCreate() : void 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 * @testdox The datamapper sucessfully creates a database entry of array data
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testCreateArray() : void public function testCreateArray() : void
{ {
@ -183,6 +186,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The datamapper sucessfully returns a database entry as model * @testdox The datamapper sucessfully returns a database entry as model
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testRead() : void public function testRead() : void
{ {
@ -219,6 +223,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The datamapper sucessfully returns a database entry as array * @testdox The datamapper sucessfully returns a database entry as array
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testReadArray() : void 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 * @testdox The datamapper sucessfully updates a database entry from a model
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testUpdate() : void 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 * @testdox The datamapper sucessfully updates a database entry from an array
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testUpdateArray() : void 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 * @testdox The datamapper sucessfully deletes a database entry from a model
* @covers phpOMS\DataStorage\Database\DataMapperAbstract * @covers phpOMS\DataStorage\Database\DataMapperAbstract
* @group framework
*/ */
public function testDelete() : void public function testDelete() : void
{ {

View File

@ -34,6 +34,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The pool has the expected default values after initialization * @testdox The pool has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -42,6 +43,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A database connection can be created by the pool * @testdox A database connection can be created by the pool
* @group framework
*/ */
public function testCreateConnection() : void public function testCreateConnection() : void
{ {
@ -52,6 +54,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Database connections cannot be overwritten * @testdox Database connections cannot be overwritten
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -63,6 +66,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Existing database connections can be added to the pool * @testdox Existing database connections can be added to the pool
* @group framework
*/ */
public function testAddConnections() : void public function testAddConnections() : void
{ {
@ -73,6 +77,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Database connections can be removed from the pool * @testdox Database connections can be removed from the pool
* @group framework
*/ */
public function testRemoveConnections() : void public function testRemoveConnections() : void
{ {
@ -84,6 +89,7 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid database connections cannot be removed * @testdox Invalid database connections cannot be removed
* @group framework
*/ */
public function testInvalidRemove() : void 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 * @testdox The first connection added to the pool is the default connection
* @group framework
*/ */
public function testDefaultConnection() : void public function testDefaultConnection() : void
{ {

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseStatus;
class DatabaseStatusTest extends \PHPUnit\Framework\TestCase class DatabaseStatusTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class DatabaseStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class DatabaseStatusTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
class DatabaseTypeTest extends \PHPUnit\Framework\TestCase class DatabaseTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class DatabaseTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class DatabaseTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -33,6 +33,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql selects form a valid query * @testdox Mysql selects form a valid query
* @group framework
*/ */
public function testMysqlSelect() : void public function testMysqlSelect() : void
{ {
@ -91,6 +92,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql orders form a valid query * @testdox Mysql orders form a valid query
* @group framework
*/ */
public function testMysqlOrder() : void public function testMysqlOrder() : void
{ {
@ -121,6 +123,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql offsets and limits form a valid query * @testdox Mysql offsets and limits form a valid query
* @group framework
*/ */
public function testMysqlOffsetLimit() : void public function testMysqlOffsetLimit() : void
{ {
@ -135,6 +138,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql groupings form a valid query * @testdox Mysql groupings form a valid query
* @group framework
*/ */
public function testMysqlGroup() : void public function testMysqlGroup() : void
{ {
@ -156,6 +160,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql wheres form a valid query * @testdox Mysql wheres form a valid query
* @group framework
*/ */
public function testMysqlWheres() : void public function testMysqlWheres() : void
{ {
@ -218,6 +223,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql joins form a valid query * @testdox Mysql joins form a valid query
* @group framework
*/ */
public function testMysqlJoins() : void public function testMysqlJoins() : void
{ {
@ -280,6 +286,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql inserts form a valid query * @testdox Mysql inserts form a valid query
* @group framework
*/ */
public function testMysqlInsert() : void public function testMysqlInsert() : void
{ {
@ -307,6 +314,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql deletes form a valid query * @testdox Mysql deletes form a valid query
* @group framework
*/ */
public function testMysqlDelete() : void public function testMysqlDelete() : void
{ {
@ -321,6 +329,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql updates form a valid query * @testdox Mysql updates form a valid query
* @group framework
*/ */
public function testMysqlUpdate() : void public function testMysqlUpdate() : void
{ {
@ -339,6 +348,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Raw queries get output as defined * @testdox Raw queries get output as defined
* @group framework
*/ */
public function testRawInputOutput() : void public function testRawInputOutput() : void
{ {
@ -348,6 +358,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Read only queries don't allow drops * @testdox Read only queries don't allow drops
* @group framework
*/ */
public function testReadOnlyRaw() : void public function testReadOnlyRaw() : void
{ {
@ -359,6 +370,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Read only queries don't allow inserts * @testdox Read only queries don't allow inserts
* @group framework
*/ */
public function testReadOnlyInsert() : void public function testReadOnlyInsert() : void
{ {
@ -370,6 +382,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Read only queries don't allow updates * @testdox Read only queries don't allow updates
* @group framework
*/ */
public function testReadOnlyUpdate() : void public function testReadOnlyUpdate() : void
{ {
@ -381,6 +394,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Read only queries don't allow deletes * @testdox Read only queries don't allow deletes
* @group framework
*/ */
public function testReadOnlyDelete() : void public function testReadOnlyDelete() : void
{ {
@ -392,6 +406,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid select types throw a InvalidArgumentException * @testdox Invalid select types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidSelectParameter() : void public function testInvalidSelectParameter() : void
{ {
@ -403,6 +418,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid from types throw a InvalidArgumentException * @testdox Invalid from types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidFromParameter() : void public function testInvalidFromParameter() : void
{ {
@ -414,6 +430,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid group types throw a InvalidArgumentException * @testdox Invalid group types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidGroupByParameter() : void public function testInvalidGroupByParameter() : void
{ {
@ -425,6 +442,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid where operators throw a InvalidArgumentException * @testdox Invalid where operators throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidWhereOperator() : void public function testInvalidWhereOperator() : void
{ {
@ -436,6 +454,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid join types throw a InvalidArgumentException * @testdox Invalid join types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidJoinTable() : void public function testInvalidJoinTable() : void
{ {
@ -447,6 +466,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid join operators throw a InvalidArgumentException * @testdox Invalid join operators throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidJoinOperator() : void public function testInvalidJoinOperator() : void
{ {
@ -458,6 +478,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid order types throw a InvalidArgumentException * @testdox Invalid order types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidOrderType() : void public function testInvalidOrderType() : void
{ {
@ -469,6 +490,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Invalid order column types throw a InvalidArgumentException * @testdox Invalid order column types throw a InvalidArgumentException
* @group framework
*/ */
public function testInvalidOrderColumnType() : void public function testInvalidOrderColumnType() : void
{ {

View File

@ -26,6 +26,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The grammar can define a default table prefix and return this value
* @group framework
*/ */
public function testPrefixInputOutput() : void public function testPrefixInputOutput() : void
{ {

View File

@ -27,6 +27,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {

View File

@ -26,6 +26,7 @@ class SQLiteGrammarTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Query\JoinType;
class JoinTypeTest extends \PHPUnit\Framework\TestCase class JoinTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class JoinTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class JoinTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Query\QueryType;
class QueryTypeTest extends \PHPUnit\Framework\TestCase class QueryTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\RelationType;
class RelationTypeTest extends \PHPUnit\Framework\TestCase class RelationTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class RelationTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class RelationTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -33,6 +33,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql drops form a valid query * @testdox Mysql drops form a valid query
* @group framework
*/ */
public function testMysqlDrop() : void public function testMysqlDrop() : void
{ {
@ -43,6 +44,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql show tables form a valid query * @testdox Mysql show tables form a valid query
* @group framework
*/ */
public function testMysqlShowTables() : void public function testMysqlShowTables() : void
{ {
@ -53,6 +55,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql show fields form a valid query * @testdox Mysql show fields form a valid query
* @group framework
*/ */
public function testMysqlShowFields() : void public function testMysqlShowFields() : void
{ {
@ -63,6 +66,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Mysql create tables form a valid query * @testdox Mysql create tables form a valid query
* @group framework
*/ */
public function testMysqlCreateTable() : void public function testMysqlCreateTable() : void
{ {

View File

@ -25,6 +25,7 @@ class GrammarTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The grammar can define a default table prefix and return this value
* @group framework
*/ */
public function testPrefixInputOutput() : void public function testPrefixInputOutput() : void
{ {

View File

@ -37,6 +37,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended> * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended>
* @group framework
*/ */
public function testDefault() : void 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 * @testdox The the grammar correctly creates and returns a database table
* @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended> * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended>
* @group framework
*/ */
public function testSchemaInputOutput() : void public function testSchemaInputOutput() : void
{ {
@ -74,6 +76,7 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The grammar correctly deletes a table * @testdox The grammar correctly deletes a table
* @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended> * @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended>
* @group framework
*/ */
public function testDelete() : void public function testDelete() : void
{ {

View File

@ -25,6 +25,7 @@ class SQLiteGrammarTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The grammar has the expected default values after initialization * @testdox The grammar has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {

View File

@ -22,6 +22,7 @@ use phpOMS\DataStorage\Database\Schema\QueryType;
class QueryTypeTest extends \PHPUnit\Framework\TestCase class QueryTypeTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnumCount() : void public function testEnumCount() : void
@ -30,6 +31,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testUnique() : void public function testUnique() : void
@ -38,6 +40,7 @@ class QueryTypeTest extends \PHPUnit\Framework\TestCase
} }
/** /**
* @group framework
* @coversNothing * @coversNothing
*/ */
public function testEnums() : void public function testEnums() : void

View File

@ -25,6 +25,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The session has the expected default values after initialization * @testdox The session has the expected default values after initialization
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -35,6 +36,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Session data can be set and returned * @testdox Session data can be set and returned
* @group framework
*/ */
public function testInputOutput() : void public function testInputOutput() : void
{ {
@ -45,6 +47,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Session data cannot be overwritten * @testdox Session data cannot be overwritten
* @group framework
*/ */
public function testInvalidOverwrite() : void public function testInvalidOverwrite() : void
{ {
@ -56,6 +59,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Session data can be forced to overwrite * @testdox Session data can be forced to overwrite
* @group framework
*/ */
public function testOverwrite() : void public function testOverwrite() : void
{ {
@ -67,6 +71,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Session data can be removed * @testdox Session data can be removed
* @group framework
*/ */
public function testRemove() : void public function testRemove() : void
{ {
@ -77,6 +82,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing session data cannot be removed * @testdox None-existing session data cannot be removed
* @group framework
*/ */
public function testInvalidRemove() : void public function testInvalidRemove() : void
{ {
@ -89,6 +95,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A session id can be set and returned * @testdox A session id can be set and returned
* @group framework
*/ */
public function testSessionIdInputOutput() : void public function testSessionIdInputOutput() : void
{ {
@ -99,6 +106,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A session can be locked * @testdox A session can be locked
* @group framework
*/ */
public function testLockInputOutput() : void public function testLockInputOutput() : void
{ {
@ -110,6 +118,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A locked session cannot add or change data * @testdox A locked session cannot add or change data
* @group framework
*/ */
public function testLockInvalidSet() : void public function testLockInvalidSet() : void
{ {
@ -121,6 +130,7 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A locked session cannot remove data * @testdox A locked session cannot remove data
* @group framework
*/ */
public function testLockInvalidRemove() : void public function testLockInvalidRemove() : void
{ {

View File

@ -43,6 +43,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The dispatcher has the expected member variables * @testdox The dispatcher has the expected member variables
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testAttributes() : void public function testAttributes() : void
{ {
@ -52,6 +53,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The disptacher can dispatch a function/closure * @testdox The disptacher can dispatch a function/closure
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testClosure() : void 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 * @testdox The disptacher can dispatch a method as string representation of a controller
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testPathMethod() : void 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 * @testdox The disptacher can dispatch a method as array representation of a controller
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testPathMethodInArray() : void 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 * @testdox The disptacher can dispatch a static method as string representation
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testPathStatic() : void public function testPathStatic() : void
{ {
@ -144,6 +149,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The disptacher can dispatch multiple destinations after another * @testdox The disptacher can dispatch multiple destinations after another
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testArray() : void public function testArray() : void
{ {
@ -167,6 +173,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid destination type throws UnexpectedValueException * @testdox A invalid destination type throws UnexpectedValueException
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testInvalidDestination() : void public function testInvalidDestination() : void
{ {
@ -178,6 +185,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid controller path thorws a PathException * @testdox A invalid controller path thorws a PathException
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testInvalidControllerPath() : void public function testInvalidControllerPath() : void
{ {
@ -189,6 +197,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A invalid function path thorws a Exception * @testdox A invalid function path thorws a Exception
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testInvalidControllerFunction() : void public function testInvalidControllerFunction() : void
{ {
@ -200,6 +209,7 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox A malformed dispatch path thorws UnexpectedValueException * @testdox A malformed dispatch path thorws UnexpectedValueException
* @covers phpOMS\Dispatcher\Dispatcher * @covers phpOMS\Dispatcher\Dispatcher
* @group framework
*/ */
public function testInvalidControllerString() : void public function testInvalidControllerString() : void
{ {

View File

@ -35,6 +35,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The event manager has the expected member variables * @testdox The event manager has the expected member variables
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testAttributes() : void 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 * @testdox The event manager has the expected default values after initialization
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testDefault() : void public function testDefault() : void
{ {
@ -54,6 +56,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox New events can be added * @testdox New events can be added
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testAdd() : void public function testAdd() : void
{ {
@ -64,6 +67,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Multiple callbacks can be added to an event * @testdox Multiple callbacks can be added to an event
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testAddMultiple() : void 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 * @testdox An event gets executed if all conditions and sub conditions are met
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testDispatchAfterAllConditions() : void 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 * @testdox An event doesn't get executed if not all conditions and sub conditions are met
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testDispatchAfterSomeConditionsInvalid() : void public function testDispatchAfterSomeConditionsInvalid() : void
{ {
@ -102,6 +108,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing events cannot be executed/triggered * @testdox None-existing events cannot be executed/triggered
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testInvalidEventTrigger() : void 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. * @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 * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testReset() : void 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. * @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 * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testNoeReset() : void public function testNoeReset() : void
{ {
@ -141,6 +150,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox An event can be manually removed/detatched * @testdox An event can be manually removed/detatched
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testDetach() : void public function testDetach() : void
{ {
@ -157,6 +167,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox None-existing events cannot be manually removed/detatched * @testdox None-existing events cannot be manually removed/detatched
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testInvalidDetach() : void 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 * @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 * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testRemove() : void public function testRemove() : void
{ {
@ -185,6 +197,7 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox Events can be imported from a file * @testdox Events can be imported from a file
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testImportEvents() : void 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 * @testdox Invalid event files cannot be imported and return a failure
* @covers phpOMS\Event\EventManager * @covers phpOMS\Event\EventManager
* @group framework
*/ */
public function testInvalidImportEvents() : void public function testInvalidImportEvents() : void
{ {

View File

@ -40,6 +40,7 @@ class CityMapperTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The model can be read from the database * @testdox The model can be read from the database
* @group framework
*/ */
public function testR() : void public function testR() : void
{ {

View File

@ -27,6 +27,7 @@ class CityTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The model has the expected member variables and default values * @testdox The model has the expected member variables and default values
* @group framework
*/ */
public function testDefaults() : void public function testDefaults() : void
{ {

View File

@ -40,6 +40,7 @@ class CountryMapperTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The model can be read from the database * @testdox The model can be read from the database
* @group framework
*/ */
public function testR() : void public function testR() : void
{ {

View File

@ -27,6 +27,7 @@ class CountryTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The model has the expected member variables and default values * @testdox The model has the expected member variables and default values
* @group framework
*/ */
public function testDefaults() : void public function testDefaults() : void
{ {

View File

@ -40,6 +40,7 @@ class CurrencyMapperTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The model can be read from the database * @testdox The model can be read from the database
* @group framework
*/ */
public function testR() : void public function testR() : void
{ {

View File

@ -27,6 +27,7 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @testdox The model has the expected member variables and default values * @testdox The model has the expected member variables and default values
* @group framework
*/ */
public function testDefaults() : void public function testDefaults() : void
{ {

View File

@ -40,6 +40,7 @@ class IbanMapperTest extends \PHPUnit\Framework\TestCase
/** /**
* @testdox The model can be read from the database * @testdox The model can be read from the database
* @group framework
*/ */
public function testR() : void public function testR() : void
{ {

Some files were not shown because too many files have changed in this diff Show More