mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 20:08:41 +00:00
more tests and make classes final
This commit is contained in:
parent
9f8d074e84
commit
2cfcb24742
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AccountManagerTest extends \PHPUnit\Framework\TestCase
|
||||
final class AccountManagerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $manager = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Account\AccountStatus;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class AccountStatusTest extends \PHPUnit\Framework\TestCase
|
||||
final class AccountStatusTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AccountTest extends \PHPUnit\Framework\TestCase
|
||||
final class AccountTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $l11nManager = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Account\AccountType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class AccountTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class AccountTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Account\GroupStatus;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class GroupStatusTest extends \PHPUnit\Framework\TestCase
|
||||
final class GroupStatusTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class GroupTest extends \PHPUnit\Framework\TestCase
|
||||
final class GroupTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The group has the expected member variables
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use phpOMS\Account\PermissionType;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class PermissionAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The permission has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Account\PermissionType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class PermissionTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class PermissionTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\Ai\Ocr\BasicOcr;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
||||
final class BasicOcrTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\Ai\Ocr\BasicOcr
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Algorithm\Clustering\Point;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class KmeansTest extends \PHPUnit\Framework\TestCase
|
||||
final class KmeansTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The clustering of points and dynamic check of new points works as expected
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Algorithm\Clustering\Point;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PointTest extends \PHPUnit\Framework\TestCase
|
||||
final class PointTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The point has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase
|
||||
final class MinimumCoinProblemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox A value is matched with the minimum quantity of available coins.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Algorithm\JobScheduling\Job;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class JobTest extends \PHPUnit\Framework\TestCase
|
||||
final class JobTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The job has the expected values after initialization
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Algorithm\JobScheduling\Weighted;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class WeightedTest extends \PHPUnit\Framework\TestCase
|
||||
final class WeightedTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The optimal job combination is selected to maximize the value/profit without overlapping jobs
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Algorithm\Knapsack\Item;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BackpackTest extends \PHPUnit\Framework\TestCase
|
||||
final class BackpackTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The backpack has the expected values after initialization
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\Algorithm\Knapsack\Item;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BoundedTest extends \PHPUnit\Framework\TestCase
|
||||
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
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\Algorithm\Knapsack\Item;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ContinuousTest extends \PHPUnit\Framework\TestCase
|
||||
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]
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Algorithm\Knapsack\Item;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ItemTest extends \PHPUnit\Framework\TestCase
|
||||
final class ItemTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The item has the expected values after initialization
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MazeGeneratorTest extends \PHPUnit\Framework\TestCase
|
||||
final class MazeGeneratorTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox A random maze can be generated
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AStarNodeTest extends \PHPUnit\Framework\TestCase
|
||||
final class AStarNodeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $node;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AStarTest extends \PHPUnit\Framework\TestCase
|
||||
final class AStarTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private array $gridArray = [
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class GridTest extends \PHPUnit\Framework\TestCase
|
||||
final class GridTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox By default a grid is empty
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class HeuristicTest extends \PHPUnit\Framework\TestCase
|
||||
final class HeuristicTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The heuristics return the correct metric results
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
|
||||
final class JumpPointNodeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $node;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class JumpPointSearchTest extends \PHPUnit\Framework\TestCase
|
||||
final class JumpPointSearchTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
private array $gridArray = [
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class NodeTest extends \PHPUnit\Framework\TestCase
|
||||
final class NodeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The node has the expected values after initialization
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PathTest extends \PHPUnit\Framework\TestCase
|
||||
final class PathTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The path has the expected values after initialization
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BitonicSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class BitonicSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BubbleSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class BubbleSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BucketSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class BucketSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CombSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class CombSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CycleSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class CycleSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class GnomeSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class GnomeSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class HeapSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class HeapSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class InsertionSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class InsertionSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class IntroSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class IntroSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MergeSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class MergeSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class OddEvenSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class OddEvenSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PancakeSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class PancakeSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class QuickSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class QuickSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class SelectionSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class SelectionSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ShellSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class ShellSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class StoogeSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class StoogeSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ require_once __DIR__ . '/../../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class TimSortTest extends \PHPUnit\Framework\TestCase
|
||||
final class TimSortTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $list = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class ApplicationAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox Application values can be set and returned
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\Application\ApplicationInfo;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||
final class ApplicationInfoTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox A info file can be correctly loaded
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ use phpOMS\System\File\Local\Directory;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||
final class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected ApplicationManager $appManager;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\Application\InstallerAbstract;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected InstallerAbstract $installer;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\Application\StatusAbstract;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class StatusAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected StatusAbstract $status;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\DatabasePool;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class UninstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class UninstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected UninstallerAbstract $uninstaller;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AssetManagerTest extends \PHPUnit\Framework\TestCase
|
||||
final class AssetManagerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $manager = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Asset\AssetType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class AssetTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class AssetTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AuthTest extends \PHPUnit\Framework\TestCase
|
||||
final class AuthTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The default http session doesn't authenticate an account
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Auth\LoginReturnType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class LoginReturnTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\AutoloadException;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class AutoloadExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
final class AutoloadExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\AutoloadException
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Autoloader;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||
final class AutoloaderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox Classes can be checked for existence
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Finance\Depreciation;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class DepreciationTest extends \PHPUnit\Framework\TestCase
|
||||
final class DepreciationTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The straight line depreciation and reverse value calculations are correct
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Finance\FinanceFormulas;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||
final class FinanceFormulasTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The annual percentage yield (APY) and reverse value calculations are correct
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Finance\Loan;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class LoanTest extends \PHPUnit\Framework\TestCase
|
||||
final class LoanTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The loan to deposit ratio is correct
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Finance\Lorenzkurve;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class LorenzkurveTest extends \PHPUnit\Framework\TestCase
|
||||
final class LorenzkurveTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The gini coefficient calculation is correct
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Finance\StockBonds;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class StockBondsTest extends \PHPUnit\Framework\TestCase
|
||||
final class StockBondsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The calculation of various stock/bond related ratios/yields is correct
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Marketing\ArticleCorrelationAffinity;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ArticleCorrelationAffinityTest extends \PHPUnit\Framework\TestCase
|
||||
final class ArticleCorrelationAffinityTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The highest affinities between articles purchased are calculated correctly
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Marketing\CustomerValue;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CustomerValueTest extends \PHPUnit\Framework\TestCase
|
||||
final class CustomerValueTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The simple customer life time value is correctly calculated
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Marketing\Metrics;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MetricsTest extends \PHPUnit\Framework\TestCase
|
||||
final class MetricsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox Test the correctness of the customer retention calculation
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Marketing\NetPromoterScore;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase
|
||||
final class NetPromoterScoreTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The net promoter has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Marketing\PageRank;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PageRankTest extends \PHPUnit\Framework\TestCase
|
||||
final class PageRankTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox Test the correctness of the page rank algorithm
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\Business\Programming\Metrics;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MetricsTest extends \PHPUnit\Framework\TestCase
|
||||
final class MetricsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox Test correctness of the ABC calculation
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use phpOMS\Business\Sales\MarketShareEstimation;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MarketShareEstimationTest extends \PHPUnit\Framework\TestCase
|
||||
final class MarketShareEstimationTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The rank calculated with Zipf is correct
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class OptionsTraitTest extends \PHPUnit\Framework\TestCase
|
||||
final class OptionsTraitTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The option helper has the expected attributes
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Cache\Connection\FileCache;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CachePoolTest extends \PHPUnit\Framework\TestCase
|
||||
final class CachePoolTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The pool has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Cache\CacheStatus;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class CacheStatusTest extends \PHPUnit\Framework\TestCase
|
||||
final class CacheStatusTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Cache\CacheType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class CacheTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class CacheTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Cache\Connection\CacheValueType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class CacheValueTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class CacheValueTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Cache\Connection\ConnectionFactory;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
final class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The file cache can be created
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use phpOMS\Utils\TestUtils;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||
final class FileCacheTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected FileCache $cache;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use phpOMS\Utils\TestUtils;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||
final class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected MemCached $cache;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use phpOMS\Utils\TestUtils;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||
final class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected RedisCache $cache;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Cache\Exception\InvalidConnectionConfigException
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Cookie\CookieJar;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class CookieJarTest extends \PHPUnit\Framework\TestCase
|
||||
final class CookieJarTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected CookieJar $jar;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\Connection\SqlServerConnection;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
final class ConnectionFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The mysql connection can be successfully created
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
final class MysqlConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp() : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
final class PostgresConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp() : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
final class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp() : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
final class SqlServerConnectionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected function setUp() : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use phpOMS\tests\DataStorage\Database\TestModel\NullBaseModel;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
final class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected BaseModel $model;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\DataStorage\Database\DatabaseStatus;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class DatabasePoolTest extends \PHPUnit\Framework\TestCase
|
||||
final class DatabasePoolTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected DatabasePool $dbPool;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\DatabaseStatus;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseStatusTest extends \PHPUnit\Framework\TestCase
|
||||
final class DatabaseStatusTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseTypeTest extends \PHPUnit\Framework\TestCase
|
||||
final class DatabaseTypeTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @group framework
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
final class InvalidConnectionConfigExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidDatabaseTypeException;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class InvalidDatabaseTypeExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
final class InvalidDatabaseTypeExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidDatabaseTypeException
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidMapperException;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class InvalidMapperExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
final class InvalidMapperExceptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Exception\InvalidMapperException
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use phpOMS\DataStorage\Database\Query\Parameter;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class BuilderTest extends \PHPUnit\Framework\TestCase
|
||||
final class BuilderTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $con;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Column;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class ColumnTest extends \PHPUnit\Framework\TestCase
|
||||
final class ColumnTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Query\Column
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Count;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class CountTest extends \PHPUnit\Framework\TestCase
|
||||
final class CountTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Query\Count
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Expression;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class ExpressionTest extends \PHPUnit\Framework\TestCase
|
||||
final class ExpressionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Query\Expression
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\From;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class FromTest extends \PHPUnit\Framework\TestCase
|
||||
final class FromTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Query\From
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\Grammar;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class GrammarTest extends \PHPUnit\Framework\TestCase
|
||||
final class GrammarTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The grammar has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Utils\TestUtils;
|
|||
*
|
||||
* @internal
|
||||
*/
|
||||
class MysqlGrammarTest extends \PHPUnit\Framework\TestCase
|
||||
final class MysqlGrammarTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @testdox The grammar has the expected default values after initialization
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\OracleGrammar;
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
||||
final class OracleGrammarTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers phpOMS\DataStorage\Database\Query\Grammar\OracleGrammar
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user