mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-10 17:28:40 +00:00
fix tests
This commit is contained in:
parent
8c2ea75430
commit
a1b591d141
|
|
@ -18,8 +18,8 @@ With Karaka you have one partner who can provide all the tools and software solu
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* PHP 8.1
|
* PHP 8.2
|
||||||
* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear
|
* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear
|
||||||
* apache2 (recommended) or nginx
|
* apache2 (recommended) or nginx
|
||||||
* mysql-server (recommended) or postgresql postgresql-contrib
|
* mysql-server (recommended) or postgresql postgresql-contrib
|
||||||
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,15 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=9.4",
|
"phpunit/phpunit": ">=11.0",
|
||||||
"friendsofphp/php-cs-fixer": ">=3.8",
|
"friendsofphp/php-cs-fixer": ">=3.51",
|
||||||
"squizlabs/php_codesniffer": ">=3.6",
|
"squizlabs/php_codesniffer": ">=3.7",
|
||||||
"phpmd/phpmd": ">=2.9",
|
"phpmd/phpmd": ">=2.9",
|
||||||
"phpstan/phpstan": ">=1.8.6",
|
"phpstan/phpstan": ">=1.10.62",
|
||||||
"phan/phan": ">=3.2.6",
|
"phan/phan": ">=3.2.6",
|
||||||
"phploc/phploc": ">=7.0",
|
"phploc/phploc": ">=7.0",
|
||||||
"phpmetrics/phpmetrics": ">=2.8",
|
"phpmetrics/phpmetrics": ">=2.8",
|
||||||
"rector/rector": ">=0.18.0"
|
"rector/rector": ">=1.0.3"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true
|
"prefer-stable": true
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -55,7 +55,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddAccount() : void
|
public function testAddAccount() : void
|
||||||
|
|
@ -67,7 +67,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRetrieveAccount() : void
|
public function testRetrieveAccount() : void
|
||||||
|
|
@ -78,7 +78,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNoAccountDuplication() : void
|
public function testNoAccountDuplication() : void
|
||||||
|
|
@ -94,7 +94,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRemoveAccount() : void
|
public function testRemoveAccount() : void
|
||||||
|
|
@ -107,7 +107,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRemoveOnlyValidAccount() : void
|
public function testRemoveOnlyValidAccount() : void
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -95,7 +95,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetAndGetAccountNames() : void
|
public function testSetAndGetAccountNames() : void
|
||||||
|
|
@ -118,7 +118,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddAndGetGroup() : void
|
public function testAddAndGetGroup() : void
|
||||||
|
|
@ -133,7 +133,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetAndGetAccountEmail() : void
|
public function testSetAndGetAccountEmail() : void
|
||||||
|
|
@ -147,7 +147,7 @@ final class AccountTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Account permissions can be added
|
* @testdox Account permissions can be added
|
||||||
* @covers phpOMS\Account\Account<extended>
|
* @covers \phpOMS\Account\Account<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionAdd() : void
|
public function testPermissionAdd() : void
|
||||||
|
|
@ -179,7 +179,7 @@ final class AccountTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Account permissions can be checked for existence
|
* @testdox Account permissions can be checked for existence
|
||||||
* @covers phpOMS\Account\Account<extended>
|
* @covers \phpOMS\Account\Account<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionExists() : void
|
public function testPermissionExists() : void
|
||||||
|
|
@ -208,7 +208,7 @@ final class AccountTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Account permissions can be removed
|
* @testdox Account permissions can be removed
|
||||||
* @covers phpOMS\Account\Account<extended>
|
* @covers \phpOMS\Account\Account<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionRemove() : void
|
public function testPermissionRemove() : void
|
||||||
|
|
@ -228,7 +228,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLocalization() : void
|
public function testLocalization() : void
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -59,7 +59,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetAndGetGroupNameDescription() : void
|
public function testSetAndGetGroupNameDescription() : void
|
||||||
|
|
@ -75,7 +75,7 @@ final class GroupTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Group permissions can be added
|
* @testdox Group permissions can be added
|
||||||
* @covers phpOMS\Account\Group<extended>
|
* @covers \phpOMS\Account\Group<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionAdd() : void
|
public function testPermissionAdd() : void
|
||||||
|
|
@ -106,7 +106,7 @@ final class GroupTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Group permissions can be checked for existence
|
* @testdox Group permissions can be checked for existence
|
||||||
* @covers phpOMS\Account\Group<extended>
|
* @covers \phpOMS\Account\Group<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionExists() : void
|
public function testPermissionExists() : void
|
||||||
|
|
@ -122,7 +122,7 @@ final class GroupTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Group permissions can be removed
|
* @testdox Group permissions can be removed
|
||||||
* @covers phpOMS\Account\Group<extended>
|
* @covers \phpOMS\Account\Group<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionRemove() : void
|
public function testPermissionRemove() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class NullAccountTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The null account is an instance of the account class
|
* @testdox The null account is an instance of the account class
|
||||||
* @covers phpOMS\Account\NullAccount
|
* @covers \phpOMS\Account\NullAccount
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -36,7 +36,7 @@ final class NullAccountTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The null account can get initialized with an id
|
* @testdox The null account can get initialized with an id
|
||||||
* @covers phpOMS\Account\NullAccount
|
* @covers \phpOMS\Account\NullAccount
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class NullGroupTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The null group is an instance of the group class
|
* @testdox The null group is an instance of the group class
|
||||||
* @covers phpOMS\Account\NullGroup
|
* @covers \phpOMS\Account\NullGroup
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNull() : void
|
public function testNull() : void
|
||||||
|
|
@ -36,7 +36,7 @@ final class NullGroupTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The null group can get initialized with an id
|
* @testdox The null group can get initialized with an id
|
||||||
* @covers phpOMS\Account\NullGroup
|
* @covers \phpOMS\Account\NullGroup
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testId() : void
|
public function testId() : void
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAbstractDefault() : void
|
public function testAbstractDefault() : void
|
||||||
|
|
@ -66,7 +66,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPermissionInputOutput() : void
|
public function testPermissionInputOutput() : void
|
||||||
|
|
@ -79,7 +79,7 @@ final class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Two permissions can be checked for equality
|
* @testdox Two permissions can be checked for equality
|
||||||
* @covers phpOMS\Account\PermissionAbstract
|
* @covers \phpOMS\Account\PermissionAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testEqualPermissions() : void
|
public function testEqualPermissions() : void
|
||||||
|
|
@ -119,7 +119,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testValidPermission() : void
|
public function testValidPermission() : void
|
||||||
|
|
@ -134,7 +134,7 @@ final class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Invalid permissions are not validated
|
* @testdox Invalid permissions are not validated
|
||||||
* @covers phpOMS\Account\PermissionAbstract
|
* @covers \phpOMS\Account\PermissionAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPermission() : void
|
public function testInvalidPermission() : void
|
||||||
|
|
@ -148,7 +148,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testValidPermissionFlag() : void
|
public function testValidPermissionFlag() : void
|
||||||
|
|
@ -163,7 +163,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPermissionFlag() : void
|
public function testInvalidPermissionFlag() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\Ai\Ocr\BasicOcr;
|
||||||
final class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
final class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\BasicOcr
|
* @covers \phpOMS\Ai\Ocr\BasicOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOcr() : void
|
public function testOcr() : void
|
||||||
|
|
@ -64,7 +64,7 @@ final class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\BasicOcr
|
* @covers \phpOMS\Ai\Ocr\BasicOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidImagePath() : void
|
public function testInvalidImagePath() : void
|
||||||
|
|
@ -75,7 +75,7 @@ final class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\BasicOcr
|
* @covers \phpOMS\Ai\Ocr\BasicOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidLabelPath() : void
|
public function testInvalidLabelPath() : void
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ final class TesseractOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
* @covers \phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOcrBasic() : void
|
public function testOcrBasic() : void
|
||||||
|
|
@ -76,7 +76,7 @@ final class TesseractOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
* @covers \phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOcrWithThresholding() : void
|
public function testOcrWithThresholding() : void
|
||||||
|
|
@ -99,7 +99,7 @@ final class TesseractOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
* @covers \phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
|
|
@ -135,7 +135,7 @@ final class TesseractOcrTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
* @covers \phpOMS\Ai\Ocr\Tesseract\TesseractOcr
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testKmeans() : void
|
public function testKmeans() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCoordinateInputOutput() : void
|
public function testCoordinateInputOutput() : void
|
||||||
|
|
@ -58,7 +58,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGroupInputOutput() : void
|
public function testGroupInputOutput() : void
|
||||||
|
|
@ -71,7 +71,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNameInputOutput() : void
|
public function testNameInputOutput() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A value is matched with the minimum quantity of available coins.
|
* @testdox A value is matched with the minimum quantity of available coins.
|
||||||
* @covers phpOMS\Algorithm\CoinMatching\MinimumCoinProblem
|
* @covers \phpOMS\Algorithm\CoinMatching\MinimumCoinProblem
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMinimumCoins() : void
|
public function testMinimumCoins() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
||||||
final class DependencyResolverTest extends \PHPUnit\Framework\TestCase
|
final class DependencyResolverTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\DependencyResolver
|
* @covers \phpOMS\Algorithm\Graph\DependencyResolver
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testResolveCircular() : void
|
public function testResolveCircular() : void
|
||||||
|
|
@ -37,7 +37,7 @@ final class DependencyResolverTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\DependencyResolver
|
* @covers \phpOMS\Algorithm\Graph\DependencyResolver
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testResolve() : void
|
public function testResolve() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
||||||
final class MarkovChainTest extends \PHPUnit\Framework\TestCase
|
final class MarkovChainTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\MarkovChain
|
* @covers \phpOMS\Algorithm\Graph\MarkovChain
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGenerate() : void
|
public function testGenerate() : void
|
||||||
|
|
@ -44,7 +44,7 @@ final class MarkovChainTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\MarkovChain
|
* @covers \phpOMS\Algorithm\Graph\MarkovChain
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTrainingGenerate() : void
|
public function testTrainingGenerate() : void
|
||||||
|
|
@ -56,7 +56,7 @@ final class MarkovChainTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\MarkovChain
|
* @covers \phpOMS\Algorithm\Graph\MarkovChain
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStepProbability() : void
|
public function testStepProbability() : void
|
||||||
|
|
@ -80,7 +80,7 @@ final class MarkovChainTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Algorithm\Graph\MarkovChain
|
* @covers \phpOMS\Algorithm\Graph\MarkovChain
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathProbability() : void
|
public function testPathProbability() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNoOverlappingScheduling() : void
|
public function testNoOverlappingScheduling() : void
|
||||||
|
|
@ -60,7 +60,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSmallList() : void
|
public function testSmallList() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -41,7 +41,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddItems() : void
|
public function testAddItems() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBackpacking() : void
|
public function testBackpacking() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBackpacking() : void
|
public function testBackpacking() : void
|
||||||
|
|
@ -69,7 +69,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBackpackingAlternative() : void
|
public function testBackpackingAlternative() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class MazeGeneratorTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A random maze can be generated
|
* @testdox A random maze can be generated
|
||||||
* @covers phpOMS\Algorithm\Maze\MazeGenerator
|
* @covers \phpOMS\Algorithm\Maze\MazeGenerator
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMazeGeneration() : void
|
public function testMazeGeneration() : void
|
||||||
|
|
@ -61,7 +61,7 @@ final class MazeGeneratorTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A random maze can be rendered
|
* @testdox A random maze can be rendered
|
||||||
* @covers phpOMS\Algorithm\Maze\MazeGenerator
|
* @covers \phpOMS\Algorithm\Maze\MazeGenerator
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMazeRender() : void
|
public function testMazeRender() : void
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -51,7 +51,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testClosedInputOutput() : void
|
public function testClosedInputOutput() : void
|
||||||
|
|
@ -62,7 +62,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOpenedInputOutput() : void
|
public function testOpenedInputOutput() : void
|
||||||
|
|
@ -73,7 +73,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGInputOutput() : void
|
public function testGInputOutput() : void
|
||||||
|
|
@ -84,7 +84,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testHInputOutput() : void
|
public function testHInputOutput() : void
|
||||||
|
|
@ -95,7 +95,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFInputOutput() : void
|
public function testFInputOutput() : void
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonal() : void
|
public function testPathFindingDiagonal() : void
|
||||||
|
|
@ -140,7 +140,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingStraight() : void
|
public function testPathFindingStraight() : void
|
||||||
|
|
@ -203,7 +203,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonalOneObstacle() : void
|
public function testPathFindingDiagonalOneObstacle() : void
|
||||||
|
|
@ -266,7 +266,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonalNoObstacle() : void
|
public function testPathFindingDiagonalNoObstacle() : void
|
||||||
|
|
@ -329,7 +329,7 @@ final class AStarTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid start or end node returns the grid
|
* @testdox A invalid start or end node returns the grid
|
||||||
* @covers phpOMS\Algorithm\PathFinding\AStar
|
* @covers \phpOMS\Algorithm\PathFinding\AStar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidStartEndNode() : void
|
public function testInvalidStartEndNode() : void
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -40,7 +40,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGridFromArray() : void
|
public function testGridFromArray() : void
|
||||||
|
|
@ -66,7 +66,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNodeInputOutput() : void
|
public function testNodeInputOutput() : void
|
||||||
|
|
@ -84,7 +84,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOutOfBoundsNode() : void
|
public function testOutOfBoundsNode() : void
|
||||||
|
|
@ -103,7 +103,7 @@ final class GridTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox All horizontal neighbors can be found correctly
|
* @testdox All horizontal neighbors can be found correctly
|
||||||
* @covers phpOMS\Algorithm\PathFinding\Grid::getNeighbors
|
* @covers \phpOMS\Algorithm\PathFinding\Grid::getNeighbors
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStraightHorizontalNeighbors() : void
|
public function testStraightHorizontalNeighbors() : void
|
||||||
|
|
@ -124,7 +124,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStraightVerticalNeighbors() : void
|
public function testStraightVerticalNeighbors() : void
|
||||||
|
|
@ -145,7 +145,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStraightNoneNeighbors() : void
|
public function testStraightNoneNeighbors() : void
|
||||||
|
|
@ -164,7 +164,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStraightAllNeighbors() : void
|
public function testStraightAllNeighbors() : void
|
||||||
|
|
@ -187,7 +187,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalLRNeighbors() : void
|
public function testDiagonalLRNeighbors() : void
|
||||||
|
|
@ -212,7 +212,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalURNeighbors() : void
|
public function testDiagonalURNeighbors() : void
|
||||||
|
|
@ -237,7 +237,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalNoneNeighbors() : void
|
public function testDiagonalNoneNeighbors() : void
|
||||||
|
|
@ -256,7 +256,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalOnlyNeighbors() : void
|
public function testDiagonalOnlyNeighbors() : void
|
||||||
|
|
@ -279,7 +279,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalAllNeighbors() : void
|
public function testDiagonalAllNeighbors() : void
|
||||||
|
|
@ -306,7 +306,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalOneObstacleNoBlockNeighbors() : void
|
public function testDiagonalOneObstacleNoBlockNeighbors() : void
|
||||||
|
|
@ -332,7 +332,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalOneObstacleBlockNeighbors() : void
|
public function testDiagonalOneObstacleBlockNeighbors() : void
|
||||||
|
|
@ -356,7 +356,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalOneObstacleAllNeighbors() : void
|
public function testDiagonalOneObstacleAllNeighbors() : void
|
||||||
|
|
@ -383,7 +383,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalNoObstacleBlockNeighbors() : void
|
public function testDiagonalNoObstacleBlockNeighbors() : void
|
||||||
|
|
@ -407,7 +407,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalNoObstacleAllNeighbors() : void
|
public function testDiagonalNoObstacleAllNeighbors() : void
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final class HeuristicTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The heuristics return the correct metric results
|
* @testdox The heuristics return the correct metric results
|
||||||
* @covers phpOMS\Algorithm\PathFinding\Heuristic
|
* @covers \phpOMS\Algorithm\PathFinding\Heuristic
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testHeuristics() : void
|
public function testHeuristics() : void
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -52,7 +52,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testClosedInputOutput() : void
|
public function testClosedInputOutput() : void
|
||||||
|
|
@ -63,7 +63,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOpenedInputOutput() : void
|
public function testOpenedInputOutput() : void
|
||||||
|
|
@ -74,7 +74,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTestedInputOutput() : void
|
public function testTestedInputOutput() : void
|
||||||
|
|
@ -85,7 +85,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGInputOutput() : void
|
public function testGInputOutput() : void
|
||||||
|
|
@ -96,7 +96,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testHInputOutput() : void
|
public function testHInputOutput() : void
|
||||||
|
|
@ -107,7 +107,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFInputOutput() : void
|
public function testFInputOutput() : void
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonal() : void
|
public function testPathFindingDiagonal() : void
|
||||||
|
|
@ -121,7 +121,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingStraight() : void
|
public function testPathFindingStraight() : void
|
||||||
|
|
@ -165,7 +165,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonalOneObstacle() : void
|
public function testPathFindingDiagonalOneObstacle() : void
|
||||||
|
|
@ -209,7 +209,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathFindingDiagonalNoObstacle() : void
|
public function testPathFindingDiagonalNoObstacle() : void
|
||||||
|
|
@ -253,7 +253,7 @@ final class JumpPointSearchTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid start or end node returns the grid
|
* @testdox A invalid start or end node returns the grid
|
||||||
* @covers phpOMS\Algorithm\PathFinding\JumpPointSearch
|
* @covers \phpOMS\Algorithm\PathFinding\JumpPointSearch
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidStartEndNode() : void
|
public function testInvalidStartEndNode() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -44,7 +44,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNodesWithEqualCoordinatesAreEqual() : void
|
public function testNodesWithEqualCoordinatesAreEqual() : void
|
||||||
|
|
@ -57,7 +57,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNodesWithDifferentCoordinatesAreNotEqual() : void
|
public function testNodesWithDifferentCoordinatesAreNotEqual() : void
|
||||||
|
|
@ -70,7 +70,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testParentInputOutput() : void
|
public function testParentInputOutput() : void
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -42,7 +42,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiagonalPathLength() : void
|
public function testDiagonalPathLength() : void
|
||||||
|
|
@ -66,7 +66,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStraightPathLength() : void
|
public function testStraightPathLength() : void
|
||||||
|
|
@ -90,7 +90,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathExpansion() : void
|
public function testPathExpansion() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class EloTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox 1v1 rating test
|
* @testdox 1v1 rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Elo
|
* @covers \phpOMS\Algorithm\Rating\Elo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSoloRating() : void
|
public function testSoloRating() : void
|
||||||
|
|
@ -81,7 +81,7 @@ final class EloTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox group rating test
|
* @testdox group rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Elo
|
* @covers \phpOMS\Algorithm\Rating\Elo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGroupRating() : void
|
public function testGroupRating() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class Glicko1Test extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox 1v1 rating test
|
* @testdox 1v1 rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Glicko1
|
* @covers \phpOMS\Algorithm\Rating\Glicko1
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSoloRating() : void
|
public function testSoloRating() : void
|
||||||
|
|
@ -122,7 +122,7 @@ final class Glicko1Test extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox group rating test
|
* @testdox group rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Glicko1
|
* @covers \phpOMS\Algorithm\Rating\Glicko1
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGroupRating() : void
|
public function testGroupRating() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox 1v1 rating test
|
* @testdox 1v1 rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Glicko2
|
* @covers \phpOMS\Algorithm\Rating\Glicko2
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSoloRating() : void
|
public function testSoloRating() : void
|
||||||
|
|
@ -142,7 +142,7 @@ final class Glicko2Test extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox group rating test
|
* @testdox group rating test
|
||||||
* @covers phpOMS\Algorithm\Rating\Glicko2
|
* @covers \phpOMS\Algorithm\Rating\Glicko2
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGroupRating() : void
|
public function testGroupRating() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class EUVATBffOnlineTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The BFF Online service can validate a valid VAT ID
|
* @testdox The BFF Online service can validate a valid VAT ID
|
||||||
* @covers phpOMS\Api\EUVAT\EUVATBffOnline
|
* @covers \phpOMS\Api\EUVAT\EUVATBffOnline
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testValidateInvalidId() : void
|
public function testValidateInvalidId() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class EUVATViesTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The VIES service can validate a valid VAT ID
|
* @testdox The VIES service can validate a valid VAT ID
|
||||||
* @covers phpOMS\Api\EUVAT\EUVATVies
|
* @covers \phpOMS\Api\EUVAT\EUVATVies
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testValidateInvalidId() : void
|
public function testValidateInvalidId() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox Application values can be set and returned
|
* @testdox Application values can be set and returned
|
||||||
* @covers phpOMS\Application\ApplicationAbstract<extended>
|
* @covers \phpOMS\Application\ApplicationAbstract<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInputOutput() : void
|
public function testInputOutput() : void
|
||||||
|
|
@ -38,7 +38,7 @@ final class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Application values cannot be overwritten
|
* @testdox Application values cannot be overwritten
|
||||||
* @covers phpOMS\Application\ApplicationAbstract<extended>
|
* @covers \phpOMS\Application\ApplicationAbstract<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidInputOutput() : void
|
public function testInvalidInputOutput() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox An application info file can be correctly loaded
|
* @testdox An application info file can be correctly loaded
|
||||||
* @covers phpOMS\Application\ApplicationInfo
|
* @covers \phpOMS\Application\ApplicationInfo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLoad() : void
|
public function testLoad() : void
|
||||||
|
|
@ -51,7 +51,7 @@ final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A info file can be modified
|
* @testdox A info file can be modified
|
||||||
* @covers phpOMS\Application\ApplicationInfo
|
* @covers \phpOMS\Application\ApplicationInfo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testChange() : void
|
public function testChange() : void
|
||||||
|
|
@ -75,7 +75,7 @@ final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid info file path load throws a PathException
|
* @testdox A invalid info file path load throws a PathException
|
||||||
* @covers phpOMS\Application\ApplicationInfo
|
* @covers \phpOMS\Application\ApplicationInfo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPathLoad() : void
|
public function testInvalidPathLoad() : void
|
||||||
|
|
@ -88,7 +88,7 @@ final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid info file path update throws a PathException
|
* @testdox A invalid info file path update throws a PathException
|
||||||
* @covers phpOMS\Application\ApplicationInfo
|
* @covers \phpOMS\Application\ApplicationInfo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPathUpdate() : void
|
public function testInvalidPathUpdate() : void
|
||||||
|
|
@ -101,7 +101,7 @@ final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid change data throws a InvalidArgumentException
|
* @testdox A invalid change data throws a InvalidArgumentException
|
||||||
* @covers phpOMS\Application\ApplicationInfo
|
* @covers \phpOMS\Application\ApplicationInfo
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataSet() : void
|
public function testInvalidDataSet() : void
|
||||||
|
|
|
||||||
|
|
@ -86,10 +86,10 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An application can be installed and uninstalled
|
* @testdox An application can be installed and uninstalled
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @covers phpOMS\Application\InstallerAbstract
|
* @covers \phpOMS\Application\InstallerAbstract
|
||||||
* @covers phpOMS\Application\StatusAbstract
|
* @covers \phpOMS\Application\StatusAbstract
|
||||||
* @covers phpOMS\Application\UninstallerAbstract
|
* @covers \phpOMS\Application\UninstallerAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInstallUninstall() : void
|
public function testInstallUninstall() : void
|
||||||
|
|
@ -113,9 +113,9 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
/**
|
/**
|
||||||
* @testdox An application can be re-initialized
|
* @testdox An application can be re-initialized
|
||||||
* @testdox A module can be re-initialized
|
* @testdox A module can be re-initialized
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @covers phpOMS\Application\InstallerAbstract
|
* @covers \phpOMS\Application\InstallerAbstract
|
||||||
* @covers phpOMS\Application\StatusAbstract
|
* @covers \phpOMS\Application\StatusAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReInit() : void
|
public function testReInit() : void
|
||||||
|
|
@ -142,7 +142,7 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid application path results in no installation
|
* @testdox A invalid application path results in no installation
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidSourceDestinationInstallPath() : void
|
public function testInvalidSourceDestinationInstallPath() : void
|
||||||
|
|
@ -153,7 +153,7 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing installation file results in no installation
|
* @testdox A missing installation file results in no installation
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMissingInstallerPath() : void
|
public function testMissingInstallerPath() : void
|
||||||
|
|
@ -163,7 +163,7 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing info file results in no installation
|
* @testdox A missing info file results in no installation
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMissingApplicationInfoFile() : void
|
public function testMissingApplicationInfoFile() : void
|
||||||
|
|
@ -173,7 +173,7 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid application path results in no uninstall
|
* @testdox A invalid application path results in no uninstall
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidSourceUninstallPath() : void
|
public function testInvalidSourceUninstallPath() : void
|
||||||
|
|
@ -184,7 +184,7 @@ final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing uninstall file results in no uninstall
|
* @testdox A missing uninstall file results in no uninstall
|
||||||
* @covers phpOMS\Application\ApplicationManager
|
* @covers \phpOMS\Application\ApplicationManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMissingUninstallerPath() : void
|
public function testMissingUninstallerPath() : void
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An invalid theme cannot be installed
|
* @testdox An invalid theme cannot be installed
|
||||||
* @covers phpOMS\Application\InstallerAbstract
|
* @covers \phpOMS\Application\InstallerAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidTheme() : void
|
public function testInvalidTheme() : void
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ final class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid application path cannot be activated
|
* @testdox A invalid application path cannot be activated
|
||||||
* @covers phpOMS\Application\StatusAbstract
|
* @covers \phpOMS\Application\StatusAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidAppPathActivation() : void
|
public function testInvalidAppPathActivation() : void
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ final class UninstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database schema will not perform any database operations
|
* @testdox A missing database schema will not perform any database operations
|
||||||
* @covers phpOMS\Application\UninstallerAbstract
|
* @covers \phpOMS\Application\UninstallerAbstract
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMissingDbFileUninstall() : void
|
public function testMissingDbFileUninstall() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\AutoloadException;
|
||||||
final class AutoloadExceptionTest extends \PHPUnit\Framework\TestCase
|
final class AutoloadExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\AutoloadException
|
* @covers \phpOMS\AutoloadException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAutoloader() : void
|
public function testAutoloader() : void
|
||||||
|
|
@ -35,7 +35,7 @@ final class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Autoloader
|
* @covers \phpOMS\Autoloader
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLoading() : void
|
public function testLoading() : void
|
||||||
|
|
@ -47,7 +47,7 @@ final class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Autoloader
|
* @covers \phpOMS\Autoloader
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testManualPathLoading() : void
|
public function testManualPathLoading() : void
|
||||||
|
|
@ -66,7 +66,7 @@ final class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Autoloader
|
* @covers \phpOMS\Autoloader
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOpcodeCacheInvalidation() : void
|
public function testOpcodeCacheInvalidation() : void
|
||||||
|
|
@ -89,7 +89,7 @@ final class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Autoloader
|
* @covers \phpOMS\Autoloader
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUncachedInvalidation() : void
|
public function testUncachedInvalidation() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAnnualPercentageYield() : void
|
public function testAnnualPercentageYield() : void
|
||||||
|
|
@ -42,7 +42,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFutureValueOfAnnuity() : void
|
public function testFutureValueOfAnnuity() : void
|
||||||
|
|
@ -61,7 +61,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFutureValueOfAnnuityContinuousCompounding() : void
|
public function testFutureValueOfAnnuityContinuousCompounding() : void
|
||||||
|
|
@ -80,7 +80,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAnnuityPaymentPV() : void
|
public function testAnnuityPaymentPV() : void
|
||||||
|
|
@ -99,7 +99,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAnnuityPaymentFV() : void
|
public function testAnnuityPaymentFV() : void
|
||||||
|
|
@ -118,7 +118,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAnnuityPaymentFactorPV() : void
|
public function testAnnuityPaymentFactorPV() : void
|
||||||
|
|
@ -135,7 +135,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The present value of the annuity is correct
|
* @testdox The present value of the annuity is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPresentValueOfAnnuity() : void
|
public function testPresentValueOfAnnuity() : void
|
||||||
|
|
@ -154,7 +154,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPresentValueAnnuityFactor() : void
|
public function testPresentValueAnnuityFactor() : void
|
||||||
|
|
@ -171,7 +171,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The due present value the annuity is correct
|
* @testdox The due present value the annuity is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPresentValueOfAnnuityDue() : void
|
public function testPresentValueOfAnnuityDue() : void
|
||||||
|
|
@ -191,7 +191,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The due future value the annuity is correct
|
* @testdox The due future value the annuity is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFutureValueOfAnnuityDue() : void
|
public function testFutureValueOfAnnuityDue() : void
|
||||||
|
|
@ -211,7 +211,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRelativeMarketShare() : void
|
public function testRelativeMarketShare() : void
|
||||||
|
|
@ -222,7 +222,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The asset ratio calculations are correct
|
* @testdox The asset ratio calculations are correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAssetRatios() : void
|
public function testAssetRatios() : void
|
||||||
|
|
@ -233,7 +233,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBalanceRatios() : void
|
public function testBalanceRatios() : void
|
||||||
|
|
@ -246,7 +246,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDeptRatios() : void
|
public function testDeptRatios() : void
|
||||||
|
|
@ -259,7 +259,7 @@ final 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)
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReturnOnBalancePositions() : void
|
public function testReturnOnBalancePositions() : void
|
||||||
|
|
@ -271,7 +271,7 @@ final 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)
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBalancePLRatios() : void
|
public function testBalancePLRatios() : void
|
||||||
|
|
@ -283,7 +283,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Various ratios are correct (e.g. interest coverage, quick ratio, rate of inflation)
|
* @testdox Various ratios are correct (e.g. interest coverage, quick ratio, rate of inflation)
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRatios() : void
|
public function testRatios() : void
|
||||||
|
|
@ -300,7 +300,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCompound() : void
|
public function testCompound() : void
|
||||||
|
|
@ -320,7 +320,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testContinuousCompounding() : void
|
public function testContinuousCompounding() : void
|
||||||
|
|
@ -341,7 +341,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Calculations for interest, principal and periods are correct
|
* @testdox Calculations for interest, principal and periods are correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSimpleInterest() : void
|
public function testSimpleInterest() : void
|
||||||
|
|
@ -360,7 +360,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The discounted payback period is correct
|
* @testdox The discounted payback period is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDiscountedPaybackPeriod() : void
|
public function testDiscountedPaybackPeriod() : void
|
||||||
|
|
@ -374,7 +374,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDoublingTime() : void
|
public function testDoublingTime() : void
|
||||||
|
|
@ -387,7 +387,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDoublingTimeContinuousCompounding() : void
|
public function testDoublingTimeContinuousCompounding() : void
|
||||||
|
|
@ -400,7 +400,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Calculations for equivalent annual annuity are correct
|
* @testdox Calculations for equivalent annual annuity are correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testEquivalentAnnualAnnuity() : void
|
public function testEquivalentAnnualAnnuity() : void
|
||||||
|
|
@ -416,7 +416,7 @@ final 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)
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFreeCashFlowToEquity() : void
|
public function testFreeCashFlowToEquity() : void
|
||||||
|
|
@ -432,7 +432,7 @@ final 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)
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFreeCashFlowToFirm() : void
|
public function testFreeCashFlowToFirm() : void
|
||||||
|
|
@ -448,7 +448,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The future value calculation is correct
|
* @testdox The future value calculation is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFutureValue() : void
|
public function testFutureValue() : void
|
||||||
|
|
@ -462,7 +462,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFutureValueContinuousCompounding() : void
|
public function testFutureValueContinuousCompounding() : void
|
||||||
|
|
@ -476,7 +476,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The future value factor calculation is correct
|
* @testdox The future value factor calculation is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testValueFactor() : void
|
public function testValueFactor() : void
|
||||||
|
|
@ -490,7 +490,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGeometricMeanReturn() : void
|
public function testGeometricMeanReturn() : void
|
||||||
|
|
@ -502,7 +502,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrowingAnnuityFV() : void
|
public function testGrowingAnnuityFV() : void
|
||||||
|
|
@ -517,7 +517,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrowingAnnuityPaymentPV() : void
|
public function testGrowingAnnuityPaymentPV() : void
|
||||||
|
|
@ -532,7 +532,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrowingAnnuityPaymentFV() : void
|
public function testGrowingAnnuityPaymentFV() : void
|
||||||
|
|
@ -547,7 +547,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrowingAnnuityPV() : void
|
public function testGrowingAnnuityPV() : void
|
||||||
|
|
@ -562,7 +562,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrowingPerpetuityPV() : void
|
public function testGrowingPerpetuityPV() : void
|
||||||
|
|
@ -576,7 +576,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNetPresentValue() : void
|
public function testNetPresentValue() : void
|
||||||
|
|
@ -589,7 +589,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox No cash flows in the net present value calculation result in 0
|
* @testdox No cash flows in the net present value calculation result in 0
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testEmptyNetPresentValue() : void
|
public function testEmptyNetPresentValue() : void
|
||||||
|
|
@ -599,7 +599,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRealRateOfReturn() : void
|
public function testRealRateOfReturn() : void
|
||||||
|
|
@ -612,7 +612,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNetWorkingCapital() : void
|
public function testNetWorkingCapital() : void
|
||||||
|
|
@ -622,7 +622,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNumberOfPeriodsPVFV() : void
|
public function testNumberOfPeriodsPVFV() : void
|
||||||
|
|
@ -636,7 +636,7 @@ final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The calculation of the present value is correct
|
* @testdox The calculation of the present value is correct
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPresentValue() : void
|
public function testPresentValue() : void
|
||||||
|
|
@ -650,7 +650,7 @@ final 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
|
||||||
* @covers phpOMS\Business\Finance\FinanceFormulas
|
* @covers \phpOMS\Business\Finance\FinanceFormulas
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPresentValueContinuousCompounding() : void
|
public function testPresentValueContinuousCompounding() : void
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -76,7 +76,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The connection to a dedicated cache directory can be established (none-existing directories get created)
|
* @testdox The connection to a dedicated cache directory can be established (none-existing directories get created)
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -86,7 +86,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetInputOutput() : void
|
public function testSetInputOutput() : void
|
||||||
|
|
@ -118,7 +118,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddInputOutput() : void
|
public function testAddInputOutput() : void
|
||||||
|
|
@ -271,7 +271,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidOverwrite() : void
|
public function testInvalidOverwrite() : void
|
||||||
|
|
@ -283,7 +283,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReplace() : void
|
public function testReplace() : void
|
||||||
|
|
@ -297,7 +297,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidReplace() : void
|
public function testInvalidReplace() : void
|
||||||
|
|
@ -307,7 +307,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDelete() : void
|
public function testDelete() : void
|
||||||
|
|
@ -326,7 +326,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStats() : void
|
public function testStats() : void
|
||||||
|
|
@ -349,7 +349,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The cache can be flushed
|
* @testdox The cache can be flushed
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFlush() : void
|
public function testFlush() : void
|
||||||
|
|
@ -375,7 +375,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUnexpiredInputOutput() : void
|
public function testUnexpiredInputOutput() : void
|
||||||
|
|
@ -386,7 +386,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testExpiredInputOutput() : void
|
public function testExpiredInputOutput() : void
|
||||||
|
|
@ -400,7 +400,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testForceExpiredInputOutput() : void
|
public function testForceExpiredInputOutput() : void
|
||||||
|
|
@ -412,7 +412,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Unexpired cache data cannot be delete if lower expiration is defined
|
* @testdox Unexpired cache data cannot be delete if lower expiration is defined
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDeleteUnexpired() : void
|
public function testInvalidDeleteUnexpired() : void
|
||||||
|
|
@ -423,7 +423,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDeleteExpired() : void
|
public function testDeleteExpired() : void
|
||||||
|
|
@ -435,7 +435,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testForceDeleteUnexpired() : void
|
public function testForceDeleteUnexpired() : void
|
||||||
|
|
@ -448,7 +448,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Cache data can be flushed by expiration date
|
* @testdox Cache data can be flushed by expiration date
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFlushExpired() : void
|
public function testFlushExpired() : void
|
||||||
|
|
@ -462,7 +462,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBadCacheStatus() : void
|
public function testBadCacheStatus() : void
|
||||||
|
|
@ -481,7 +481,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCachePath() : void
|
public function testInvalidCachePath() : void
|
||||||
|
|
@ -493,7 +493,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeAdd() : void
|
public function testInvalidDataTypeAdd() : void
|
||||||
|
|
@ -505,7 +505,7 @@ final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\FileCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeSet() : void
|
public function testInvalidDataTypeSet() : void
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -73,7 +73,7 @@ final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The connection to a cache can be established (none-existing directories get created)
|
* @testdox The connection to a cache can be established (none-existing directories get created)
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -87,7 +87,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetInputOutput() : void
|
public function testSetInputOutput() : void
|
||||||
|
|
@ -122,7 +122,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddInputOutput() : void
|
public function testAddInputOutput() : void
|
||||||
|
|
@ -219,7 +219,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidOverwrite() : void
|
public function testInvalidOverwrite() : void
|
||||||
|
|
@ -231,7 +231,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReplace() : void
|
public function testReplace() : void
|
||||||
|
|
@ -245,7 +245,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidReplace() : void
|
public function testInvalidReplace() : void
|
||||||
|
|
@ -255,7 +255,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDelete() : void
|
public function testDelete() : void
|
||||||
|
|
@ -280,7 +280,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStats() : void
|
public function testStats() : void
|
||||||
|
|
@ -307,7 +307,7 @@ final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The cache can be flushed
|
* @testdox The cache can be flushed
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFlush() : void
|
public function testFlush() : void
|
||||||
|
|
@ -328,7 +328,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUnexpiredInputOutput() : void
|
public function testUnexpiredInputOutput() : void
|
||||||
|
|
@ -339,7 +339,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testExpiredInputOutput() : void
|
public function testExpiredInputOutput() : void
|
||||||
|
|
@ -352,7 +352,7 @@ final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Cache data can be flushed by expiration date
|
* @testdox Cache data can be flushed by expiration date
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFlushExpired() : void
|
public function testFlushExpired() : void
|
||||||
|
|
@ -366,7 +366,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBadCacheStatus() : void
|
public function testBadCacheStatus() : void
|
||||||
|
|
@ -385,7 +385,7 @@ final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeAdd() : void
|
public function testInvalidDataTypeAdd() : void
|
||||||
|
|
@ -397,7 +397,7 @@ final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeSet() : void
|
public function testInvalidDataTypeSet() : void
|
||||||
|
|
@ -409,7 +409,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCacheHost() : void
|
public function testInvalidCacheHost() : void
|
||||||
|
|
@ -424,7 +424,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCachePort() : void
|
public function testInvalidCachePort() : void
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ final 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\NullCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\NullCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -68,7 +68,7 @@ final class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The connection to a cache can be established (none-existing directories get created)
|
* @testdox The connection to a cache can be established (none-existing directories get created)
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -83,7 +83,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSetInputOutput() : void
|
public function testSetInputOutput() : void
|
||||||
|
|
@ -115,7 +115,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddInputOutput() : void
|
public function testAddInputOutput() : void
|
||||||
|
|
@ -254,7 +254,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidOverwrite() : void
|
public function testInvalidOverwrite() : void
|
||||||
|
|
@ -266,7 +266,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReplace() : void
|
public function testReplace() : void
|
||||||
|
|
@ -280,7 +280,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidReplace() : void
|
public function testInvalidReplace() : void
|
||||||
|
|
@ -290,7 +290,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDelete() : void
|
public function testDelete() : void
|
||||||
|
|
@ -315,7 +315,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testStats() : void
|
public function testStats() : void
|
||||||
|
|
@ -332,7 +332,7 @@ final class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The cache can be flushed
|
* @testdox The cache can be flushed
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFlush() : void
|
public function testFlush() : void
|
||||||
|
|
@ -353,7 +353,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUnexpiredInputOutput() : void
|
public function testUnexpiredInputOutput() : void
|
||||||
|
|
@ -364,7 +364,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testExpiredInputOutput() : void
|
public function testExpiredInputOutput() : void
|
||||||
|
|
@ -377,7 +377,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBadCacheStatus() : void
|
public function testBadCacheStatus() : void
|
||||||
|
|
@ -396,7 +396,7 @@ final class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
* @testdox Adding a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeAdd() : void
|
public function testInvalidDataTypeAdd() : void
|
||||||
|
|
@ -408,7 +408,7 @@ final class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
* @testdox Setting a invalid data type will throw an InvalidArgumentException
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDataTypeSet() : void
|
public function testInvalidDataTypeSet() : void
|
||||||
|
|
@ -420,7 +420,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCacheHost() : void
|
public function testInvalidCacheHost() : void
|
||||||
|
|
@ -435,7 +435,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCachePort() : void
|
public function testInvalidCachePort() : void
|
||||||
|
|
@ -450,7 +450,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCacheDatabase() : void
|
public function testInvalidCacheDatabase() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException;
|
||||||
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException
|
* @covers \phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCreateMysql() : void
|
public function testCreateMysql() : void
|
||||||
|
|
@ -50,7 +50,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCreatePostgres() : void
|
public function testCreatePostgres() : void
|
||||||
|
|
@ -71,7 +71,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCreateSqlsrv() : void
|
public function testCreateSqlsrv() : void
|
||||||
|
|
@ -92,7 +92,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCreateSqlite() : void
|
public function testCreateSqlite() : void
|
||||||
|
|
@ -113,7 +113,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseType() : void
|
public function testInvalidDatabaseType() : void
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -55,7 +55,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database type returns a failure
|
* @testdox A missing database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseType() : void
|
public function testInvalidDatabaseType() : void
|
||||||
|
|
@ -71,7 +71,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database host returns a failure
|
* @testdox A missing database host returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidHost() : void
|
public function testInvalidHost() : void
|
||||||
|
|
@ -87,7 +87,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database port returns a failure
|
* @testdox A missing database port returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPort() : void
|
public function testInvalidPort() : void
|
||||||
|
|
@ -103,7 +103,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database returns a failure
|
* @testdox A missing database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabase() : void
|
public function testInvalidDatabase() : void
|
||||||
|
|
@ -119,7 +119,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database login returns a failure
|
* @testdox A missing database login returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidLogin() : void
|
public function testInvalidLogin() : void
|
||||||
|
|
@ -135,7 +135,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database password returns a failure
|
* @testdox A missing database password returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPassword() : void
|
public function testInvalidPassword() : void
|
||||||
|
|
@ -151,7 +151,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database type returns a failure
|
* @testdox A invalid database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseTypeName() : void
|
public function testInvalidDatabaseTypeName() : void
|
||||||
|
|
@ -167,7 +167,7 @@ final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database returns a failure
|
* @testdox A invalid database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\MysqlConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\MysqlConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseName() : void
|
public function testInvalidDatabaseName() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class NullConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A null connection can be created as placeholder
|
* @testdox A null connection can be created as placeholder
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\NullConnection<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\NullConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -55,7 +55,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database type returns a failure
|
* @testdox A missing database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseType() : void
|
public function testInvalidDatabaseType() : void
|
||||||
|
|
@ -70,7 +70,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database host returns a failure
|
* @testdox A missing database host returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidHost() : void
|
public function testInvalidHost() : void
|
||||||
|
|
@ -85,7 +85,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database port returns a failure
|
* @testdox A missing database port returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPort() : void
|
public function testInvalidPort() : void
|
||||||
|
|
@ -100,7 +100,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database returns a failure
|
* @testdox A missing database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabase() : void
|
public function testInvalidDatabase() : void
|
||||||
|
|
@ -115,7 +115,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database login returns a failure
|
* @testdox A missing database login returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidLogin() : void
|
public function testInvalidLogin() : void
|
||||||
|
|
@ -130,7 +130,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database password returns a failure
|
* @testdox A missing database password returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPassword() : void
|
public function testInvalidPassword() : void
|
||||||
|
|
@ -145,7 +145,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database returns a failure
|
* @testdox A invalid database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseTypeName() : void
|
public function testInvalidDatabaseTypeName() : void
|
||||||
|
|
@ -160,7 +160,7 @@ final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database returns a failure
|
* @testdox A invalid database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\PostgresConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\PostgresConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseName() : void
|
public function testInvalidDatabaseName() : void
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\SQLiteConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -52,7 +52,7 @@ final class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database type returns a failure
|
* @testdox A missing database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseType() : void
|
public function testInvalidDatabaseType() : void
|
||||||
|
|
@ -67,7 +67,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\SQLiteConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabasePath() : void
|
public function testInvalidDatabasePath() : void
|
||||||
|
|
@ -83,7 +83,7 @@ final class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database returns a failure
|
* @testdox A missing database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabase() : void
|
public function testInvalidDatabase() : void
|
||||||
|
|
@ -98,7 +98,7 @@ final class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database returns a failure
|
* @testdox A invalid database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SQLiteConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseName() : void
|
public function testInvalidDatabaseName() : void
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ final 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<extended>
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testConnect() : void
|
public function testConnect() : void
|
||||||
|
|
@ -63,7 +63,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database type returns a failure
|
* @testdox A missing database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseType() : void
|
public function testInvalidDatabaseType() : void
|
||||||
|
|
@ -78,7 +78,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database host returns a failure
|
* @testdox A missing database host returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidHost() : void
|
public function testInvalidHost() : void
|
||||||
|
|
@ -93,7 +93,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database port returns a failure
|
* @testdox A missing database port returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPort() : void
|
public function testInvalidPort() : void
|
||||||
|
|
@ -108,7 +108,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database returns a failure
|
* @testdox A missing database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabase() : void
|
public function testInvalidDatabase() : void
|
||||||
|
|
@ -123,7 +123,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database login returns a failure
|
* @testdox A missing database login returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidLogin() : void
|
public function testInvalidLogin() : void
|
||||||
|
|
@ -138,7 +138,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A missing database password returns a failure
|
* @testdox A missing database password returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidPassword() : void
|
public function testInvalidPassword() : void
|
||||||
|
|
@ -153,7 +153,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database type returns a failure
|
* @testdox A invalid database type returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseTypeName() : void
|
public function testInvalidDatabaseTypeName() : void
|
||||||
|
|
@ -168,7 +168,7 @@ final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid database returns a failure
|
* @testdox A invalid database returns a failure
|
||||||
* @covers phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
* @covers \phpOMS\DataStorage\Database\Connection\SqlServerConnection
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDatabaseName() : void
|
public function testInvalidDatabaseName() : void
|
||||||
|
|
|
||||||
|
|
@ -186,12 +186,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datamapper successfully creates a database entry of a model
|
* @testdox The datamapper successfully creates a database entry of a model
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCreate() : void
|
public function testCreate() : void
|
||||||
|
|
@ -234,12 +234,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datamapper successfully returns a database entry as model
|
* @testdox The datamapper successfully returns a database entry as model
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRead() : void
|
public function testRead() : void
|
||||||
|
|
@ -390,12 +390,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFind() : void
|
public function testFind() : void
|
||||||
|
|
@ -442,12 +442,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testWithConditional() : void
|
public function testWithConditional() : void
|
||||||
|
|
@ -492,12 +492,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datamapper successfully updates a database entry from a model
|
* @testdox The datamapper successfully updates a database entry from a model
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUpdate() : void
|
public function testUpdate() : void
|
||||||
|
|
@ -527,12 +527,12 @@ final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datamapper successfully deletes a database entry from a model
|
* @testdox The datamapper successfully deletes a database entry from a model
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperAbstract
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
* @covers \phpOMS\DataStorage\Database\Mapper\DataMapperFactory
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\ReadMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\ReadMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\WriteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\WriteMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\UpdateMapper
|
||||||
* @covers phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
* @covers \phpOMS\DataStorage\Database\Mapper\DeleteMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDelete() : void
|
public function testDelete() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException;
|
||||||
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException
|
* @covers \phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidDatabaseTypeException;
|
||||||
final class InvalidDatabaseTypeExceptionTest extends \PHPUnit\Framework\TestCase
|
final class InvalidDatabaseTypeExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidDatabaseTypeException
|
* @covers \phpOMS\DataStorage\Database\Exception\InvalidDatabaseTypeException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidMapperException;
|
||||||
final class InvalidMapperExceptionTest extends \PHPUnit\Framework\TestCase
|
final class InvalidMapperExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidMapperException
|
* @covers \phpOMS\DataStorage\Database\Exception\InvalidMapperException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\OracleGrammar;
|
||||||
final class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
final class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Query\Grammar\OracleGrammar
|
* @covers \phpOMS\DataStorage\Database\Query\Grammar\OracleGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\PostgresGrammar;
|
||||||
final class PostgresGrammarTest extends \PHPUnit\Framework\TestCase
|
final class PostgresGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Query\Grammar\PostgresGrammar
|
* @covers \phpOMS\DataStorage\Database\Query\Grammar\PostgresGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\SqlServerGrammar;
|
||||||
final class SqlServerGrammarTest extends \PHPUnit\Framework\TestCase
|
final class SqlServerGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Query\Grammar\SqlServerGrammar
|
* @covers \phpOMS\DataStorage\Database\Query\Grammar\SqlServerGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Query\Where;
|
||||||
final class WhereTest extends \PHPUnit\Framework\TestCase
|
final class WhereTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Query\Where
|
* @covers \phpOMS\DataStorage\Database\Query\Where
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ final class BuilderTest 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
|
* @group framework
|
||||||
* @dataProvider dbConnectionProvider
|
* @dataProvider dbConnectionProvider
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -52,8 +52,8 @@ final 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\Builder
|
* @covers \phpOMS\DataStorage\Database\Schema\Builder
|
||||||
* @covers phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended>
|
* @covers \phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar<extended>
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSchemaInputOutput() : void
|
public function testSchemaInputOutput() : void
|
||||||
|
|
@ -86,7 +86,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDelete() : void
|
public function testDelete() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Schema\Grammar\OracleGrammar;
|
||||||
final class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
final class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Schema\Grammar\OracleGrammar
|
* @covers \phpOMS\DataStorage\Database\Schema\Grammar\OracleGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Schema\Grammar\PostgresGrammar;
|
||||||
final class PostgresGrammarTest extends \PHPUnit\Framework\TestCase
|
final class PostgresGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Schema\Grammar\PostgresGrammar
|
* @covers \phpOMS\DataStorage\Database\Schema\Grammar\PostgresGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Schema\Grammar\SqlServerGrammar;
|
||||||
final class SqlServerGrammarTest extends \PHPUnit\Framework\TestCase
|
final class SqlServerGrammarTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\DataStorage\Database\Schema\Grammar\SqlServerGrammar
|
* @covers \phpOMS\DataStorage\Database\Schema\Grammar\SqlServerGrammar
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ final class SchemaMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The tables can be returned
|
* @testdox The tables can be returned
|
||||||
* @covers phpOMS\DataStorage\Database\SchemaMapper
|
* @covers \phpOMS\DataStorage\Database\SchemaMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTables() : void
|
public function testTables() : void
|
||||||
|
|
@ -74,7 +74,7 @@ final class SchemaMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The fields of a table can be returned
|
* @testdox The fields of a table can be returned
|
||||||
* @covers phpOMS\DataStorage\Database\SchemaMapper
|
* @covers \phpOMS\DataStorage\Database\SchemaMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFields() : void
|
public function testFields() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class LockExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The lock exception is an instance of the runtime exception
|
* @testdox The lock exception is an instance of the runtime exception
|
||||||
* @covers phpOMS\DataStorage\LockException
|
* @covers \phpOMS\DataStorage\LockException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A route can be added and dispatched
|
* @testdox A route can be added and dispatched
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testControllerInputOutput() : void
|
public function testControllerInputOutput() : void
|
||||||
|
|
@ -75,7 +75,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can dispatch a function/closure
|
* @testdox The dispatcher can dispatch a function/closure
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testClosure() : void
|
public function testClosure() : void
|
||||||
|
|
@ -103,7 +103,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can dispatch a method as string representation of a controller
|
* @testdox The dispatcher can dispatch a method as string representation of a controller
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathMethod() : void
|
public function testPathMethod() : void
|
||||||
|
|
@ -123,7 +123,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can dispatch a method as array representation of a controller
|
* @testdox The dispatcher can dispatch a method as array representation of a controller
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathMethodInArray() : void
|
public function testPathMethodInArray() : void
|
||||||
|
|
@ -151,7 +151,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can dispatch a static method as string representation
|
* @testdox The dispatcher can dispatch a static method as string representation
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPathStatic() : void
|
public function testPathStatic() : void
|
||||||
|
|
@ -171,7 +171,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can dispatch multiple destinations after another
|
* @testdox The dispatcher can dispatch multiple destinations after another
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testArray() : void
|
public function testArray() : void
|
||||||
|
|
@ -195,7 +195,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The dispatcher can pass additional data to the destination
|
* @testdox The dispatcher can pass additional data to the destination
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testArrayWithData() : void
|
public function testArrayWithData() : void
|
||||||
|
|
@ -216,7 +216,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid controller path throws a PathException
|
* @testdox A invalid controller path throws a PathException
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidControllerPath() : void
|
public function testInvalidControllerPath() : void
|
||||||
|
|
@ -228,7 +228,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid function path throws a Exception
|
* @testdox A invalid function path throws a Exception
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidControllerFunction() : void
|
public function testInvalidControllerFunction() : void
|
||||||
|
|
@ -240,7 +240,7 @@ final class DispatcherTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A malformed dispatch path throws UnexpectedValueException
|
* @testdox A malformed dispatch path throws UnexpectedValueException
|
||||||
* @covers phpOMS\Dispatcher\Dispatcher
|
* @covers \phpOMS\Dispatcher\Dispatcher
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidControllerString() : void
|
public function testInvalidControllerString() : void
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -47,7 +47,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAdd() : void
|
public function testAdd() : void
|
||||||
|
|
@ -58,7 +58,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Events can be cleared
|
* @testdox Events can be cleared
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testClear() : void
|
public function testClear() : void
|
||||||
|
|
@ -72,7 +72,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAddMultiple() : void
|
public function testAddMultiple() : void
|
||||||
|
|
@ -84,7 +84,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchAfterAllConditions() : void
|
public function testDispatchAfterAllConditions() : void
|
||||||
|
|
@ -99,7 +99,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchAfterSomeConditionsInvalid() : void
|
public function testDispatchAfterSomeConditionsInvalid() : void
|
||||||
|
|
@ -113,7 +113,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidEventTrigger() : void
|
public function testInvalidEventTrigger() : void
|
||||||
|
|
@ -123,7 +123,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An event can be triggered with group and id regex matches
|
* @testdox An event can be triggered with group and id regex matches
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchSimilarGroupAndId() : void
|
public function testDispatchSimilarGroupAndId() : void
|
||||||
|
|
@ -137,7 +137,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An event can be triggered with a fixed group definition and id regex matches
|
* @testdox An event can be triggered with a fixed group definition and id regex matches
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchSimilarId() : void
|
public function testDispatchSimilarId() : void
|
||||||
|
|
@ -151,7 +151,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An event can be triggered with regex group matches and fixed id definition
|
* @testdox An event can be triggered with regex group matches and fixed id definition
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchSimilarGroup() : void
|
public function testDispatchSimilarGroup() : void
|
||||||
|
|
@ -166,7 +166,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid regex match will not triggered an event
|
* @testdox A invalid regex match will not triggered an event
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDispatchSimilarInvalid() : void
|
public function testDispatchSimilarInvalid() : void
|
||||||
|
|
@ -180,7 +180,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReset() : void
|
public function testReset() : void
|
||||||
|
|
@ -196,7 +196,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNoReset() : void
|
public function testNoReset() : void
|
||||||
|
|
@ -212,7 +212,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An event can be manually removed/detached
|
* @testdox An event can be manually removed/detached
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDetach() : void
|
public function testDetach() : void
|
||||||
|
|
@ -229,7 +229,7 @@ final class EventManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox None-existing events cannot be manually removed/detached
|
* @testdox None-existing events cannot be manually removed/detached
|
||||||
* @covers phpOMS\Event\EventManager
|
* @covers \phpOMS\Event\EventManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidDetach() : void
|
public function testInvalidDetach() : void
|
||||||
|
|
@ -244,7 +244,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRemove() : void
|
public function testRemove() : void
|
||||||
|
|
@ -259,7 +259,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testImportEvents() : void
|
public function testImportEvents() : void
|
||||||
|
|
@ -273,7 +273,7 @@ final 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
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidImportEvents() : void
|
public function testInvalidImportEvents() : void
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final class KernelTest extends \PHPUnit\Framework\TestCase
|
||||||
* @testdox The kernel can be applied to an image which is then stored in a new file
|
* @testdox The kernel can be applied to an image which is then stored in a new file
|
||||||
* @group framework
|
* @group framework
|
||||||
* @group slow
|
* @group slow
|
||||||
* @covers phpOMS\Image\Kernel
|
* @covers \phpOMS\Image\Kernel
|
||||||
*/
|
*/
|
||||||
public function testKernel() : void
|
public function testKernel() : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ final class SkewTest extends \PHPUnit\Framework\TestCase
|
||||||
* @testdox A image can be automatically unskewed
|
* @testdox A image can be automatically unskewed
|
||||||
* @group framework
|
* @group framework
|
||||||
* @group slow
|
* @group slow
|
||||||
* @covers phpOMS\Image\Skew
|
* @covers \phpOMS\Image\Skew
|
||||||
*/
|
*/
|
||||||
public function testSkew() : void
|
public function testSkew() : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class ThresholdingTest extends \PHPUnit\Framework\TestCase
|
||||||
/**
|
/**
|
||||||
* @testdox The thresholding is correctly applied to the image
|
* @testdox The thresholding is correctly applied to the image
|
||||||
* @group framework
|
* @group framework
|
||||||
* @covers phpOMS\Image\Thresholding
|
* @covers \phpOMS\Image\Thresholding
|
||||||
*/
|
*/
|
||||||
public function testThresholding() : void
|
public function testThresholding() : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ final class CityMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model can be read from the database
|
* @testdox The model can be read from the database
|
||||||
* @covers phpOMS\Localization\Defaults\CityMapper
|
* @covers \phpOMS\Localization\Defaults\CityMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testR() : void
|
public function testR() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
||||||
* @covers phpOMS\Localization\Defaults\City
|
* @covers \phpOMS\Localization\Defaults\City
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefaults() : void
|
public function testDefaults() : void
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ final class CountryMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model can be read from the database
|
* @testdox The model can be read from the database
|
||||||
* @covers phpOMS\Localization\Defaults\CountryMapper
|
* @covers \phpOMS\Localization\Defaults\CountryMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testR() : void
|
public function testR() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
||||||
* @covers phpOMS\Localization\Defaults\Country
|
* @covers \phpOMS\Localization\Defaults\Country
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefaults() : void
|
public function testDefaults() : void
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ final class CurrencyMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model can be read from the database
|
* @testdox The model can be read from the database
|
||||||
* @covers phpOMS\Localization\Defaults\CurrencyMapper
|
* @covers \phpOMS\Localization\Defaults\CurrencyMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testR() : void
|
public function testR() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final 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
|
||||||
* @covers phpOMS\Localization\Defaults\Currency
|
* @covers \phpOMS\Localization\Defaults\Currency
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefaults() : void
|
public function testDefaults() : void
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ final class IbanMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model can be read from the database
|
* @testdox The model can be read from the database
|
||||||
* @covers phpOMS\Localization\Defaults\IbanMapper
|
* @covers \phpOMS\Localization\Defaults\IbanMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testR() : void
|
public function testR() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class IbanTest 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
|
||||||
* @covers phpOMS\Localization\Defaults\Iban
|
* @covers \phpOMS\Localization\Defaults\Iban
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefaults() : void
|
public function testDefaults() : void
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ final class LanguageMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model can be read from the database
|
* @testdox The model can be read from the database
|
||||||
* @covers phpOMS\Localization\Defaults\LanguageMapper
|
* @covers \phpOMS\Localization\Defaults\LanguageMapper
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testR() : void
|
public function testR() : void
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ final class LanguageTest 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
|
||||||
* @covers phpOMS\Localization\Defaults\Language
|
* @covers \phpOMS\Localization\Defaults\Language
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefaults() : void
|
public function testDefaults() : void
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The localization manager has the expected default values after initialization
|
* @testdox The localization manager has the expected default values after initialization
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -54,7 +54,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Language data can be loaded and output as plain text or html
|
* @testdox Language data can be loaded and output as plain text or html
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLanguageInputOutput() : void
|
public function testLanguageInputOutput() : void
|
||||||
|
|
@ -85,7 +85,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox An invalid localization source returns an error string
|
* @testdox An invalid localization source returns an error string
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidControllerSource() : void
|
public function testInvalidControllerSource() : void
|
||||||
|
|
@ -95,7 +95,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Language data can be loaded from a file
|
* @testdox Language data can be loaded from a file
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLanguageFromLanguageFile() : void
|
public function testLanguageFromLanguageFile() : void
|
||||||
|
|
@ -111,7 +111,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Multiple languages can be loaded from a file
|
* @testdox Multiple languages can be loaded from a file
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLanguageMultipleLanguagesFromSingleFile() : void
|
public function testLanguageMultipleLanguagesFromSingleFile() : void
|
||||||
|
|
@ -125,7 +125,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The numeric value can be printed based on the localization
|
* @testdox The numeric value can be printed based on the localization
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGetNumeric() : void
|
public function testGetNumeric() : void
|
||||||
|
|
@ -138,7 +138,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The percentage value can be printed based on the localization
|
* @testdox The percentage value can be printed based on the localization
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGetPercentage() : void
|
public function testGetPercentage() : void
|
||||||
|
|
@ -150,7 +150,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The currency value can be printed based on the localization
|
* @testdox The currency value can be printed based on the localization
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGetCurrency() : void
|
public function testGetCurrency() : void
|
||||||
|
|
@ -170,7 +170,7 @@ final class L11nManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datetime value can be printed based on the localization
|
* @testdox The datetime value can be printed based on the localization
|
||||||
* @covers phpOMS\Localization\L11nManager
|
* @covers \phpOMS\Localization\L11nManager
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGetDateTime() : void
|
public function testGetDateTime() : void
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The localization has the expected default values after initialization
|
* @testdox The localization has the expected default values after initialization
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -68,7 +68,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid country code throws InvalidEnumValue
|
* @testdox Setting a invalid country code throws InvalidEnumValue
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCountry() : void
|
public function testInvalidCountry() : void
|
||||||
|
|
@ -80,7 +80,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid timezone code throws InvalidEnumValue
|
* @testdox Setting a invalid timezone code throws InvalidEnumValue
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidTimezone() : void
|
public function testInvalidTimezone() : void
|
||||||
|
|
@ -92,7 +92,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid angle throws InvalidEnumValue
|
* @testdox Setting a invalid angle throws InvalidEnumValue
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidAngle() : void
|
public function testInvalidAngle() : void
|
||||||
|
|
@ -104,7 +104,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Setting a invalid temperature throws InvalidEnumValue
|
* @testdox Setting a invalid temperature throws InvalidEnumValue
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidTemperature() : void
|
public function testInvalidTemperature() : void
|
||||||
|
|
@ -116,7 +116,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The country can be set and returned
|
* @testdox The country can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCountryInputOutput() : void
|
public function testCountryInputOutput() : void
|
||||||
|
|
@ -127,7 +127,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The timezone can be set and returned
|
* @testdox The timezone can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTimezoneInputOutput() : void
|
public function testTimezoneInputOutput() : void
|
||||||
|
|
@ -138,7 +138,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The datetime can be set and returned
|
* @testdox The datetime can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDatetimeInputOutput() : void
|
public function testDatetimeInputOutput() : void
|
||||||
|
|
@ -149,7 +149,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The decimal can be set and returned
|
* @testdox The decimal can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDecimalInputOutput() : void
|
public function testDecimalInputOutput() : void
|
||||||
|
|
@ -160,7 +160,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The thousands can be set and returned
|
* @testdox The thousands can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testThousandsInputOutput() : void
|
public function testThousandsInputOutput() : void
|
||||||
|
|
@ -171,7 +171,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The angle can be set and returned
|
* @testdox The angle can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAngleInputOutput() : void
|
public function testAngleInputOutput() : void
|
||||||
|
|
@ -182,7 +182,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The temperature can be set and returned
|
* @testdox The temperature can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTemperatureInputOutput() : void
|
public function testTemperatureInputOutput() : void
|
||||||
|
|
@ -193,7 +193,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The weight can be set and returned
|
* @testdox The weight can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testWeightInputOutput() : void
|
public function testWeightInputOutput() : void
|
||||||
|
|
@ -204,7 +204,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The currency format can be set and returned
|
* @testdox The currency format can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCurrencyFormatInputOutput() : void
|
public function testCurrencyFormatInputOutput() : void
|
||||||
|
|
@ -215,7 +215,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The precision can be set and returned
|
* @testdox The precision can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPrecisionInputOutput() : void
|
public function testPrecisionInputOutput() : void
|
||||||
|
|
@ -226,7 +226,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The length can be set and returned
|
* @testdox The length can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLengthInputOutput() : void
|
public function testLengthInputOutput() : void
|
||||||
|
|
@ -237,7 +237,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The area can be set and returned
|
* @testdox The area can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAreaInputOutput() : void
|
public function testAreaInputOutput() : void
|
||||||
|
|
@ -248,7 +248,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The volume can be set and returned
|
* @testdox The volume can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testVolumeInputOutput() : void
|
public function testVolumeInputOutput() : void
|
||||||
|
|
@ -259,7 +259,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The speed can be set and returned
|
* @testdox The speed can be set and returned
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSpeedInputOutput() : void
|
public function testSpeedInputOutput() : void
|
||||||
|
|
@ -270,7 +270,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Localization data can be loaded from a locale file
|
* @testdox Localization data can be loaded from a locale file
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLocalizationFromLanguageCode() : void
|
public function testLocalizationFromLanguageCode() : void
|
||||||
|
|
@ -281,7 +281,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Localization data can be loaded from a locale file
|
* @testdox Localization data can be loaded from a locale file
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLocalizationLoading() : void
|
public function testLocalizationLoading() : void
|
||||||
|
|
@ -292,7 +292,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Localization data can be serialized and unserialized
|
* @testdox Localization data can be serialized and unserialized
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLocalizationSerialize() : void
|
public function testLocalizationSerialize() : void
|
||||||
|
|
@ -308,7 +308,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox If no locale file for a specified country exists or a wild card country is used the first match of a locale file based on the defined language is loaded
|
* @testdox If no locale file for a specified country exists or a wild card country is used the first match of a locale file based on the defined language is loaded
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidCountryLocalizationLoading() : void
|
public function testInvalidCountryLocalizationLoading() : void
|
||||||
|
|
@ -319,7 +319,7 @@ final class LocalizationTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox By default the english locale file will be loaded if no other locale file can be found
|
* @testdox By default the english locale file will be loaded if no other locale file can be found
|
||||||
* @covers phpOMS\Localization\Localization
|
* @covers \phpOMS\Localization\Localization
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMissingLocalizationLoading() : void
|
public function testMissingLocalizationLoading() : void
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The logger has the expected default values after initialization
|
* @testdox The logger has the expected default values after initialization
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testDefault() : void
|
public function testDefault() : void
|
||||||
|
|
@ -71,7 +71,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The file logger can automatically create a new instance if none exists
|
* @testdox The file logger can automatically create a new instance if none exists
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFileLoggerInstance() : void
|
public function testFileLoggerInstance() : void
|
||||||
|
|
@ -95,7 +95,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A log file for the output can be specified for the file logger
|
* @testdox A log file for the output can be specified for the file logger
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNamedLogFile() : void
|
public function testNamedLogFile() : void
|
||||||
|
|
@ -116,7 +116,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox If no log file name is specified a log file per date is created
|
* @testdox If no log file name is specified a log file per date is created
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testUnnamedLogFile() : void
|
public function testUnnamedLogFile() : void
|
||||||
|
|
@ -129,7 +129,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox If no logs are performed no log file will be created
|
* @testdox If no logs are performed no log file will be created
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testNoFileIfNoLog() : void
|
public function testNoFileIfNoLog() : void
|
||||||
|
|
@ -141,7 +141,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Logs with different levels get correctly stored in the log file
|
* @testdox Logs with different levels get correctly stored in the log file
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLogInputOutput() : void
|
public function testLogInputOutput() : void
|
||||||
|
|
@ -231,7 +231,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Log files can be analyzed for the highest perpetrator (IP address)
|
* @testdox Log files can be analyzed for the highest perpetrator (IP address)
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPerpetrator() : void
|
public function testPerpetrator() : void
|
||||||
|
|
@ -247,7 +247,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Logs can be read from the log file
|
* @testdox Logs can be read from the log file
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReadLogs() : void
|
public function testReadLogs() : void
|
||||||
|
|
@ -285,7 +285,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox Invalid log reads return empty log data
|
* @testdox Invalid log reads return empty log data
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidReadLogs() : void
|
public function testInvalidReadLogs() : void
|
||||||
|
|
@ -303,7 +303,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A line can be read from a log file
|
* @testdox A line can be read from a log file
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testReadLine() : void
|
public function testReadLine() : void
|
||||||
|
|
@ -319,7 +319,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox None-existing lines return on read empty log data
|
* @testdox None-existing lines return on read empty log data
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInvalidReadLine() : void
|
public function testInvalidReadLine() : void
|
||||||
|
|
@ -335,7 +335,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A verbose file logger automatically outputs log data
|
* @testdox A verbose file logger automatically outputs log data
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testVerboseLogger() : void
|
public function testVerboseLogger() : void
|
||||||
|
|
@ -352,7 +352,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A verbose console log outputs log data
|
* @testdox A verbose console log outputs log data
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testVerboseLog() : void
|
public function testVerboseLog() : void
|
||||||
|
|
@ -369,7 +369,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A invalid log type throws a InvalidEnumValue
|
* @testdox A invalid log type throws a InvalidEnumValue
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLogException() : void
|
public function testLogException() : void
|
||||||
|
|
@ -386,7 +386,7 @@ final class FileLoggerTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The logger can perform timings for internal duration logging
|
* @testdox The logger can perform timings for internal duration logging
|
||||||
* @covers phpOMS\Log\FileLogger
|
* @covers \phpOMS\Log\FileLogger
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testTiming() : void
|
public function testTiming() : void
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use phpOMS\Math\Exception\ZeroDivisionException;
|
||||||
final class ZeroDivisionExceptionTest extends \PHPUnit\Framework\TestCase
|
final class ZeroDivisionExceptionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers phpOMS\Math\Exception\ZeroDivisionException
|
* @covers \phpOMS\Math\Exception\ZeroDivisionException
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testException() : void
|
public function testException() : void
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,9 @@ final class AlgebraTest extends \PHPUnit\Framework\TestCase
|
||||||
Algebra::mult(
|
Algebra::mult(
|
||||||
[3, 4],
|
[3, 4],
|
||||||
[
|
[
|
||||||
[1, 5, 7],
|
[1, 2],
|
||||||
[2, 6, 8],
|
[5, 6],
|
||||||
|
[7, 8],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The beta function can be approximated
|
* @testdox The beta function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Beta
|
* @covers \phpOMS\Math\Functions\Beta
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBeta() : void
|
public function testBeta() : void
|
||||||
|
|
@ -37,7 +37,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The log beta function can be approximated
|
* @testdox The log beta function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Beta
|
* @covers \phpOMS\Math\Functions\Beta
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLogBeta() : void
|
public function testLogBeta() : void
|
||||||
|
|
@ -49,7 +49,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The incomplete beta function can be approximated
|
* @testdox The incomplete beta function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Beta
|
* @covers \phpOMS\Math\Functions\Beta
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testIncompleteBeta() : void
|
public function testIncompleteBeta() : void
|
||||||
|
|
@ -63,7 +63,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The regularized beta function can be approximated
|
* @testdox The regularized beta function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Beta
|
* @covers \phpOMS\Math\Functions\Beta
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRegularizedBeta() : void
|
public function testRegularizedBeta() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class FibonacciTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A number can be checked if it is a fibonacci number
|
* @testdox A number can be checked if it is a fibonacci number
|
||||||
* @covers phpOMS\Math\Functions\Fibonacci
|
* @covers \phpOMS\Math\Functions\Fibonacci
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFibonacci() : void
|
public function testFibonacci() : void
|
||||||
|
|
@ -39,7 +39,7 @@ final class FibonacciTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A fibonacci number can be returned by index
|
* @testdox A fibonacci number can be returned by index
|
||||||
* @covers phpOMS\Math\Functions\Fibonacci
|
* @covers \phpOMS\Math\Functions\Fibonacci
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFibonacciByKey() : void
|
public function testFibonacciByKey() : void
|
||||||
|
|
@ -49,7 +49,7 @@ final class FibonacciTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The binet formula returns fibonacci numbers
|
* @testdox The binet formula returns fibonacci numbers
|
||||||
* @covers phpOMS\Math\Functions\Fibonacci
|
* @covers \phpOMS\Math\Functions\Fibonacci
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBinet() : void
|
public function testBinet() : void
|
||||||
|
|
@ -60,7 +60,7 @@ final class FibonacciTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The binet formula and the fibonacci formula return the same results
|
* @testdox The binet formula and the fibonacci formula return the same results
|
||||||
* @covers phpOMS\Math\Functions\Fibonacci
|
* @covers \phpOMS\Math\Functions\Fibonacci
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBinetFib() : void
|
public function testBinetFib() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The factorial of a number can be calculated
|
* @testdox The factorial of a number can be calculated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFactorial() : void
|
public function testFactorial() : void
|
||||||
|
|
@ -36,7 +36,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The binomial coefficient can be calculated
|
* @testdox The binomial coefficient can be calculated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBinomialCoefficient() : void
|
public function testBinomialCoefficient() : void
|
||||||
|
|
@ -48,7 +48,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The ackerman function can be calculated
|
* @testdox The ackerman function can be calculated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testAckermann() : void
|
public function testAckermann() : void
|
||||||
|
|
@ -61,7 +61,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The multiplicative inverse module can be calculated
|
* @testdox The multiplicative inverse module can be calculated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMultiplicativeInverseModulo() : void
|
public function testMultiplicativeInverseModulo() : void
|
||||||
|
|
@ -73,7 +73,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A number can be checked if it is odd
|
* @testdox A number can be checked if it is odd
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testOdd() : void
|
public function testOdd() : void
|
||||||
|
|
@ -86,7 +86,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A number can be checked if it is even
|
* @testdox A number can be checked if it is even
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testEven() : void
|
public function testEven() : void
|
||||||
|
|
@ -99,7 +99,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The relative number can be calculated on a circular number system (e.g. month in a diverging business year)
|
* @testdox The relative number can be calculated on a circular number system (e.g. month in a diverging business year)
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testCircularPosition() : void
|
public function testCircularPosition() : void
|
||||||
|
|
@ -111,7 +111,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The error function can be correctly approximated
|
* @testdox The error function can be correctly approximated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testErf() : void
|
public function testErf() : void
|
||||||
|
|
@ -124,7 +124,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The complementary error function can be correctly approximated
|
* @testdox The complementary error function can be correctly approximated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testErfc() : void
|
public function testErfc() : void
|
||||||
|
|
@ -137,7 +137,7 @@ final class FunctionsTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The generalized hypergeometric function can be correctly calculated
|
* @testdox The generalized hypergeometric function can be correctly calculated
|
||||||
* @covers phpOMS\Math\Functions\Functions
|
* @covers \phpOMS\Math\Functions\Functions
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGeneralizedHypergeometricFunction() : void
|
public function testGeneralizedHypergeometricFunction() : void
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The gamma function can be approximated
|
* @testdox The gamma function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGamma() : void
|
public function testGamma() : void
|
||||||
|
|
@ -37,7 +37,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The gamma function can be calculated for integers
|
* @testdox The gamma function can be calculated for integers
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFactorial() : void
|
public function testFactorial() : void
|
||||||
|
|
@ -47,7 +47,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The gamma function can be approximated with the spouge formula
|
* @testdox The gamma function can be approximated with the spouge formula
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testApproximationSpouge() : void
|
public function testApproximationSpouge() : void
|
||||||
|
|
@ -67,7 +67,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The gamma function can be approximated with the stirling formula
|
* @testdox The gamma function can be approximated with the stirling formula
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testApproximationStirling() : void
|
public function testApproximationStirling() : void
|
||||||
|
|
@ -87,7 +87,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The gamma function can be approximated with the lanzos formula
|
* @testdox The gamma function can be approximated with the lanzos formula
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testApproximationLanzos() : void
|
public function testApproximationLanzos() : void
|
||||||
|
|
@ -107,7 +107,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The log gamma function can be approximated
|
* @testdox The log gamma function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testLogGamma() : void
|
public function testLogGamma() : void
|
||||||
|
|
@ -127,7 +127,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The first incomplete gamma function can be approximated
|
* @testdox The first incomplete gamma function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testFirstIncompleteGamma() : void
|
public function testFirstIncompleteGamma() : void
|
||||||
|
|
@ -139,7 +139,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The second incomplete gamma function can be approximated
|
* @testdox The second incomplete gamma function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSecondIncompleteGamma() : void
|
public function testSecondIncompleteGamma() : void
|
||||||
|
|
@ -151,7 +151,7 @@ final class GammaTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The regularized incomplete gamma function can be approximated
|
* @testdox The regularized incomplete gamma function can be approximated
|
||||||
* @covers phpOMS\Math\Functions\Gamma
|
* @covers \phpOMS\Math\Functions\Gamma
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRegularizedGamma() : void
|
public function testRegularizedGamma() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class GrahamScanTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A convex hull can be formed from multiple points on a plane
|
* @testdox A convex hull can be formed from multiple points on a plane
|
||||||
* @covers phpOMS\Math\Geometry\ConvexHull\GrahamScan
|
* @covers \phpOMS\Math\Geometry\ConvexHull\GrahamScan
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testGrahamScan() : void
|
public function testGrahamScan() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class MonotoneChainTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox A convex hull can be formed from multiple points on a plane
|
* @testdox A convex hull can be formed from multiple points on a plane
|
||||||
* @covers phpOMS\Math\Geometry\ConvexHull\MonotoneChain
|
* @covers \phpOMS\Math\Geometry\ConvexHull\MonotoneChain
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testMonotoneChain() : void
|
public function testMonotoneChain() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class CircleTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The surface can be calculated
|
* @testdox The surface can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Circle
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Circle
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSurface() : void
|
public function testSurface() : void
|
||||||
|
|
@ -35,7 +35,7 @@ final class CircleTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The perimeter can be calculated
|
* @testdox The perimeter can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Circle
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Circle
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPerimeter() : void
|
public function testPerimeter() : void
|
||||||
|
|
@ -45,7 +45,7 @@ final class CircleTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The radius can be calculated with the surface
|
* @testdox The radius can be calculated with the surface
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Circle
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Circle
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRadiusBySurface() : void
|
public function testRadiusBySurface() : void
|
||||||
|
|
@ -55,7 +55,7 @@ final class CircleTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The radius can be calculated with the perimeter
|
* @testdox The radius can be calculated with the perimeter
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Circle
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Circle
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRadiusByPerimeter() : void
|
public function testRadiusByPerimeter() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class EllipseTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The surface can be calculated
|
* @testdox The surface can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Ellipse
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Ellipse
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testSurface() : void
|
public function testSurface() : void
|
||||||
|
|
@ -35,7 +35,7 @@ final class EllipseTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The perimeter can be calculated
|
* @testdox The perimeter can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Ellipse
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Ellipse
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPerimeter() : void
|
public function testPerimeter() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The location of a point can be checked relative to a polygon
|
* @testdox The location of a point can be checked relative to a polygon
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPoint() : void
|
public function testPoint() : void
|
||||||
|
|
@ -51,7 +51,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The interior angle can be calculated
|
* @testdox The interior angle can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testInteriorAngle() : void
|
public function testInteriorAngle() : void
|
||||||
|
|
@ -77,7 +77,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The exterior angle can be calculated
|
* @testdox The exterior angle can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testExteriorAngle() : void
|
public function testExteriorAngle() : void
|
||||||
|
|
@ -88,7 +88,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The perimeter can be calculated
|
* @testdox The perimeter can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testPerimeter() : void
|
public function testPerimeter() : void
|
||||||
|
|
@ -108,7 +108,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The area can be calculated
|
* @testdox The area can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testArea() : void
|
public function testArea() : void
|
||||||
|
|
@ -128,7 +128,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The barycenter can be calculated
|
* @testdox The barycenter can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testBarycenter() : void
|
public function testBarycenter() : void
|
||||||
|
|
@ -148,7 +148,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The regular area can be calculated with the side length
|
* @testdox The regular area can be calculated with the side length
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRegularAreaByLength() : void
|
public function testRegularAreaByLength() : void
|
||||||
|
|
@ -158,7 +158,7 @@ final class PolygonTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The regular area can be calculated with the radius
|
* @testdox The regular area can be calculated with the radius
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Polygon
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Polygon
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testRegularAreaByRadius() : void
|
public function testRegularAreaByRadius() : void
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ final class QuadrilateralTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @testdox The area can be calculated
|
* @testdox The area can be calculated
|
||||||
* @covers phpOMS\Math\Geometry\Shape\D2\Quadrilateral
|
* @covers \phpOMS\Math\Geometry\Shape\D2\Quadrilateral
|
||||||
* @group framework
|
* @group framework
|
||||||
*/
|
*/
|
||||||
public function testArea() : void
|
public function testArea() : void
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user