diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index 81838f28e..91df708ad 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -14,7 +14,6 @@ declare(strict_types=1); namespace phpOMS\DataStorage\Database; -use Mpdf\Tag\P; use phpOMS\DataStorage\Database\Connection\ConnectionAbstract; use phpOMS\DataStorage\Database\Exception\InvalidMapperException; use phpOMS\DataStorage\Database\Query\Builder; @@ -603,9 +602,7 @@ class DataMapperAbstract implements DataMapperInterface try { $sth = self::$db->con->prepare($query->toSql()); - if ($sth !== false) { - $sth->execute(); - } + $sth->execute(); } catch (\Throwable $t) { \var_dump($t->getMessage()); \var_dump($a = $query->toSql()); @@ -2612,8 +2609,6 @@ class DataMapperAbstract implements DataMapperInterface ->orderBy(static::$table . '_d' . $depth . '.' . ($column !== null ? self::getColumnByMember($column) : static::$primaryField), $order) ->limit($limit); - $q = $query->toSql(); - return self::getAllByQuery($query, $relations, $depth); } diff --git a/README.md b/README.md index 329b4ea04..9cea1707b 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,15 @@ Please note if you are only interested in using the framework without the web ap ### Setup +#### End-User + After installing the requirements and configuring the webserver for the correct path navigate to https://your_url.com/Install and follow the installation process. Afterwards you will be redirected to the installed backend. -For more detailed information please checkout the [Installation Guide](https://orange-management.org/dev/guide?page=setup/installation) for developers or the [Installation Guide](https://orange-management.org/info?page=setup/server) for end-users. +For more detailed information please checkout the [Installation Guide](https://orange-management.org/dev/guide?page=setup/installation). + +#### Developer + +https://github.com/Orange-Management/Developer-Guide/blob/master/setup/installation.md ## Philosophy diff --git a/Validation/Network/Hostname.php b/Validation/Network/Hostname.php index 3a84c88eb..54aa86a7c 100644 --- a/Validation/Network/Hostname.php +++ b/Validation/Network/Hostname.php @@ -38,6 +38,8 @@ abstract class Hostname extends ValidatorAbstract /** * {@inheritdoc} + * + * A IPv6 string MUST be in [...] to be sucessfully validated */ public static function isValid(mixed $value, array $constraints = null) : bool { diff --git a/tests/Account/AccountManagerTest.php b/tests/Account/AccountManagerTest.php index fbbbbc67f..843ae8c88 100644 --- a/tests/Account/AccountManagerTest.php +++ b/tests/Account/AccountManagerTest.php @@ -30,6 +30,9 @@ class AccountManagerTest extends \PHPUnit\Framework\TestCase protected $account = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->manager = new AccountManager($GLOBALS['httpSession']); diff --git a/tests/Account/AccountTest.php b/tests/Account/AccountTest.php index 311ccaeae..a3a7fec0a 100644 --- a/tests/Account/AccountTest.php +++ b/tests/Account/AccountTest.php @@ -34,6 +34,9 @@ class AccountTest extends \PHPUnit\Framework\TestCase { protected $l11nManager = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->l11nManager = new L11nManager('Api'); diff --git a/tests/Algorithm/PathFinding/AStarNodeTest.php b/tests/Algorithm/PathFinding/AStarNodeTest.php index c19d78ed0..fc1b0e8b6 100644 --- a/tests/Algorithm/PathFinding/AStarNodeTest.php +++ b/tests/Algorithm/PathFinding/AStarNodeTest.php @@ -27,6 +27,9 @@ class AStarNodeTest extends \PHPUnit\Framework\TestCase { protected $node; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->node = new AStarNode(1, 2, 3.0, false); diff --git a/tests/Algorithm/PathFinding/AStarTest.php b/tests/Algorithm/PathFinding/AStarTest.php index 816d755bc..5d5f619ba 100644 --- a/tests/Algorithm/PathFinding/AStarTest.php +++ b/tests/Algorithm/PathFinding/AStarTest.php @@ -47,6 +47,13 @@ class AStarTest extends \PHPUnit\Framework\TestCase [0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0,], ]; + /** + * Render a maze with ASCII symbols + * + * @param array $grid Maze grid + * + * @return void + */ private function renderMaze(array $grid) : void { echo "\n"; diff --git a/tests/Algorithm/PathFinding/JumpPointNodeTest.php b/tests/Algorithm/PathFinding/JumpPointNodeTest.php index 38a4ba6b7..cf534c92b 100644 --- a/tests/Algorithm/PathFinding/JumpPointNodeTest.php +++ b/tests/Algorithm/PathFinding/JumpPointNodeTest.php @@ -27,6 +27,9 @@ class JumpPointNodeTest extends \PHPUnit\Framework\TestCase { protected $node; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->node = new JumpPointNode(1, 2, 3.0, false); diff --git a/tests/Algorithm/PathFinding/JumpPointSearchTest.php b/tests/Algorithm/PathFinding/JumpPointSearchTest.php index 0ad2a2c6f..dbe54e6b9 100644 --- a/tests/Algorithm/PathFinding/JumpPointSearchTest.php +++ b/tests/Algorithm/PathFinding/JumpPointSearchTest.php @@ -47,6 +47,13 @@ class JumpPointSearchTest extends \PHPUnit\Framework\TestCase [0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0,], ]; + /** + * Render a maze with ASCII symbols + * + * @param array $grid Maze grid + * + * @return void + */ private function renderMaze(array $grid) : void { echo "\n"; diff --git a/tests/Algorithm/Sort/BitonicSortTest.php b/tests/Algorithm/Sort/BitonicSortTest.php index dd0d8d4cd..2fd1323ac 100644 --- a/tests/Algorithm/Sort/BitonicSortTest.php +++ b/tests/Algorithm/Sort/BitonicSortTest.php @@ -28,6 +28,9 @@ class BitonicSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/BubbleSortTest.php b/tests/Algorithm/Sort/BubbleSortTest.php index 52bb15fa6..36d801c06 100644 --- a/tests/Algorithm/Sort/BubbleSortTest.php +++ b/tests/Algorithm/Sort/BubbleSortTest.php @@ -28,6 +28,9 @@ class BubbleSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/BucketSortTest.php b/tests/Algorithm/Sort/BucketSortTest.php index fcf3f1200..3c22dcdc7 100644 --- a/tests/Algorithm/Sort/BucketSortTest.php +++ b/tests/Algorithm/Sort/BucketSortTest.php @@ -28,6 +28,9 @@ class BucketSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/CocktailShakerSortTest.php b/tests/Algorithm/Sort/CocktailShakerSortTest.php index c92fa39d2..86ef6047b 100644 --- a/tests/Algorithm/Sort/CocktailShakerSortTest.php +++ b/tests/Algorithm/Sort/CocktailShakerSortTest.php @@ -28,6 +28,9 @@ class CocktailShakerSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/CombSortTest.php b/tests/Algorithm/Sort/CombSortTest.php index e90598662..83195e609 100644 --- a/tests/Algorithm/Sort/CombSortTest.php +++ b/tests/Algorithm/Sort/CombSortTest.php @@ -28,6 +28,9 @@ class CombSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/CycleSortTest.php b/tests/Algorithm/Sort/CycleSortTest.php index b958f6a14..7aedb14ee 100644 --- a/tests/Algorithm/Sort/CycleSortTest.php +++ b/tests/Algorithm/Sort/CycleSortTest.php @@ -28,6 +28,9 @@ class CycleSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/GnomeSortTest.php b/tests/Algorithm/Sort/GnomeSortTest.php index 3a36f6ff1..e390bd25f 100644 --- a/tests/Algorithm/Sort/GnomeSortTest.php +++ b/tests/Algorithm/Sort/GnomeSortTest.php @@ -28,6 +28,9 @@ class GnomeSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/HeapSortTest.php b/tests/Algorithm/Sort/HeapSortTest.php index 2dfd2db87..95d6c4ac2 100644 --- a/tests/Algorithm/Sort/HeapSortTest.php +++ b/tests/Algorithm/Sort/HeapSortTest.php @@ -28,6 +28,9 @@ class HeapSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/InsertionSortTest.php b/tests/Algorithm/Sort/InsertionSortTest.php index c1ae4080c..e54b6a63d 100644 --- a/tests/Algorithm/Sort/InsertionSortTest.php +++ b/tests/Algorithm/Sort/InsertionSortTest.php @@ -28,6 +28,9 @@ class InsertionSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/IntroSortTest.php b/tests/Algorithm/Sort/IntroSortTest.php index fac24b00e..e915b82af 100644 --- a/tests/Algorithm/Sort/IntroSortTest.php +++ b/tests/Algorithm/Sort/IntroSortTest.php @@ -28,6 +28,9 @@ class IntroSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/MergeSortTest.php b/tests/Algorithm/Sort/MergeSortTest.php index 3a32fbf77..a0d5b150e 100644 --- a/tests/Algorithm/Sort/MergeSortTest.php +++ b/tests/Algorithm/Sort/MergeSortTest.php @@ -28,6 +28,9 @@ class MergeSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/OddEvenSortTest.php b/tests/Algorithm/Sort/OddEvenSortTest.php index 4795880b4..1d51843bd 100644 --- a/tests/Algorithm/Sort/OddEvenSortTest.php +++ b/tests/Algorithm/Sort/OddEvenSortTest.php @@ -28,6 +28,9 @@ class OddEvenSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/PancakeSortTest.php b/tests/Algorithm/Sort/PancakeSortTest.php index ee62cab49..0f5ba1d8d 100644 --- a/tests/Algorithm/Sort/PancakeSortTest.php +++ b/tests/Algorithm/Sort/PancakeSortTest.php @@ -28,6 +28,9 @@ class PancakeSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/QuickSortTest.php b/tests/Algorithm/Sort/QuickSortTest.php index 4e62d4d60..4bf4298e2 100644 --- a/tests/Algorithm/Sort/QuickSortTest.php +++ b/tests/Algorithm/Sort/QuickSortTest.php @@ -28,6 +28,9 @@ class QuickSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/SelectionSortTest.php b/tests/Algorithm/Sort/SelectionSortTest.php index 02468b5cf..ec2599711 100644 --- a/tests/Algorithm/Sort/SelectionSortTest.php +++ b/tests/Algorithm/Sort/SelectionSortTest.php @@ -28,6 +28,9 @@ class SelectionSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/ShellSortTest.php b/tests/Algorithm/Sort/ShellSortTest.php index 3cb037391..32350f573 100644 --- a/tests/Algorithm/Sort/ShellSortTest.php +++ b/tests/Algorithm/Sort/ShellSortTest.php @@ -28,6 +28,9 @@ class ShellSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/StoogeSortTest.php b/tests/Algorithm/Sort/StoogeSortTest.php index 545d77485..61e5bbca5 100644 --- a/tests/Algorithm/Sort/StoogeSortTest.php +++ b/tests/Algorithm/Sort/StoogeSortTest.php @@ -28,6 +28,9 @@ class StoogeSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Algorithm/Sort/TimSortTest.php b/tests/Algorithm/Sort/TimSortTest.php index 95dcb7cf0..3d73d2b78 100644 --- a/tests/Algorithm/Sort/TimSortTest.php +++ b/tests/Algorithm/Sort/TimSortTest.php @@ -28,6 +28,9 @@ class TimSortTest extends \PHPUnit\Framework\TestCase { protected $list = []; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->list = [ diff --git a/tests/Application/ApplicationManagerTest.php b/tests/Application/ApplicationManagerTest.php index 5413b45b7..b211df695 100644 --- a/tests/Application/ApplicationManagerTest.php +++ b/tests/Application/ApplicationManagerTest.php @@ -34,6 +34,9 @@ class ApplicationManagerTest extends \PHPUnit\Framework\TestCase { protected ApplicationManager $appManager; + /** + * {@inheritdoc} + */ protected function setUp() : void { $app = new class() extends ApplicationAbstract { diff --git a/tests/Asset/AssetManagerTest.php b/tests/Asset/AssetManagerTest.php index 30fc0f185..1a12af1ca 100644 --- a/tests/Asset/AssetManagerTest.php +++ b/tests/Asset/AssetManagerTest.php @@ -27,6 +27,9 @@ class AssetManagerTest extends \PHPUnit\Framework\TestCase { protected $manager = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->manager = new AssetManager(); diff --git a/tests/Auth/OAuth2/Grant/AuthorizationCodeTest.php b/tests/Auth/OAuth2/Grant/AuthorizationCodeTest.php index a235dc5d1..ff6fb5984 100644 --- a/tests/Auth/OAuth2/Grant/AuthorizationCodeTest.php +++ b/tests/Auth/OAuth2/Grant/AuthorizationCodeTest.php @@ -23,6 +23,9 @@ class AuthorizationCodeTest extends \PHPUnit\Framework\TestCase { private AuthorizationCode $grant; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->grant = new AuthorizationCode(); diff --git a/tests/Auth/OAuth2/Grant/ClientCredentialsTest.php b/tests/Auth/OAuth2/Grant/ClientCredentialsTest.php index 55888d45d..5e4d2f6f0 100644 --- a/tests/Auth/OAuth2/Grant/ClientCredentialsTest.php +++ b/tests/Auth/OAuth2/Grant/ClientCredentialsTest.php @@ -23,6 +23,9 @@ class ClientCredentialsTest extends \PHPUnit\Framework\TestCase { private ClientCredentials $grant; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->grant = new ClientCredentials(); diff --git a/tests/Auth/OAuth2/Grant/GrantAbstractTest.php b/tests/Auth/OAuth2/Grant/GrantAbstractTest.php index 9f2401e73..1c4cdb902 100644 --- a/tests/Auth/OAuth2/Grant/GrantAbstractTest.php +++ b/tests/Auth/OAuth2/Grant/GrantAbstractTest.php @@ -23,6 +23,9 @@ class GrantAbstractTest extends \PHPUnit\Framework\TestCase { private GrantAbstract $grant; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->grant = new class() extends GrantAbstract { diff --git a/tests/Auth/OAuth2/Grant/GrantFactoryTest.php b/tests/Auth/OAuth2/Grant/GrantFactoryTest.php index df2ed52aa..7bc04185c 100644 --- a/tests/Auth/OAuth2/Grant/GrantFactoryTest.php +++ b/tests/Auth/OAuth2/Grant/GrantFactoryTest.php @@ -25,6 +25,9 @@ class GrantFactoryTest extends \PHPUnit\Framework\TestCase { private GrantFactory $factory; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->factory = new GrantFactory(); diff --git a/tests/Auth/OAuth2/Grant/PasswordTest.php b/tests/Auth/OAuth2/Grant/PasswordTest.php index 35b417408..7117344a3 100644 --- a/tests/Auth/OAuth2/Grant/PasswordTest.php +++ b/tests/Auth/OAuth2/Grant/PasswordTest.php @@ -23,6 +23,9 @@ class PasswordTest extends \PHPUnit\Framework\TestCase { private Password $grant; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->grant = new Password(); diff --git a/tests/Auth/OAuth2/Grant/RefreshTokenTest.php b/tests/Auth/OAuth2/Grant/RefreshTokenTest.php index bfede0f6c..608000241 100644 --- a/tests/Auth/OAuth2/Grant/RefreshTokenTest.php +++ b/tests/Auth/OAuth2/Grant/RefreshTokenTest.php @@ -23,6 +23,9 @@ class RefreshTokenTest extends \PHPUnit\Framework\TestCase { private RefreshToken $grant; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->grant = new RefreshToken(); diff --git a/tests/Auth/OAuth2/OptionProvider/HttpBasicAuthOptionProviderTest.php b/tests/Auth/OAuth2/OptionProvider/HttpBasicAuthOptionProviderTest.php index 8a256164d..56dde42b6 100644 --- a/tests/Auth/OAuth2/OptionProvider/HttpBasicAuthOptionProviderTest.php +++ b/tests/Auth/OAuth2/OptionProvider/HttpBasicAuthOptionProviderTest.php @@ -25,6 +25,9 @@ class HttpBasicAuthOptionProviderTest extends \PHPUnit\Framework\TestCase { private HttpBasicAuthOptionProvider $provider; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->provider = new HttpBasicAuthOptionProvider(); diff --git a/tests/Auth/OAuth2/OptionProvider/PostAuthOptionProviderTest.php b/tests/Auth/OAuth2/OptionProvider/PostAuthOptionProviderTest.php index b1bea7e0f..31584707e 100644 --- a/tests/Auth/OAuth2/OptionProvider/PostAuthOptionProviderTest.php +++ b/tests/Auth/OAuth2/OptionProvider/PostAuthOptionProviderTest.php @@ -25,6 +25,9 @@ class PostAuthOptionProviderTest extends \PHPUnit\Framework\TestCase { private PostAuthOptionProvider $provider; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->provider = new PostAuthOptionProvider(); diff --git a/tests/DataStorage/Cache/Connection/FileCacheTest.php b/tests/DataStorage/Cache/Connection/FileCacheTest.php index 851f0fd75..0d26d7c91 100644 --- a/tests/DataStorage/Cache/Connection/FileCacheTest.php +++ b/tests/DataStorage/Cache/Connection/FileCacheTest.php @@ -28,6 +28,9 @@ class FileCacheTest extends \PHPUnit\Framework\TestCase { protected FileCache $cache; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (\is_dir(__DIR__ . '/Cache')) { diff --git a/tests/DataStorage/Cache/Connection/MemCachedTest.php b/tests/DataStorage/Cache/Connection/MemCachedTest.php index f2b33cfc2..b9a9e81d9 100644 --- a/tests/DataStorage/Cache/Connection/MemCachedTest.php +++ b/tests/DataStorage/Cache/Connection/MemCachedTest.php @@ -28,6 +28,9 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase { protected MemCached $cache; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!\extension_loaded('memcached')) { diff --git a/tests/DataStorage/Cache/Connection/NullCacheTest.php b/tests/DataStorage/Cache/Connection/NullCacheTest.php index e3ff815bc..4684f4dd4 100644 --- a/tests/DataStorage/Cache/Connection/NullCacheTest.php +++ b/tests/DataStorage/Cache/Connection/NullCacheTest.php @@ -27,6 +27,9 @@ final class NullCacheTest extends \PHPUnit\Framework\TestCase { protected NullCache $cache; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->cache = new NullCache([]); diff --git a/tests/DataStorage/Cache/Connection/RedisCacheTest.php b/tests/DataStorage/Cache/Connection/RedisCacheTest.php index 7e68cdb06..32a5e4479 100644 --- a/tests/DataStorage/Cache/Connection/RedisCacheTest.php +++ b/tests/DataStorage/Cache/Connection/RedisCacheTest.php @@ -28,6 +28,9 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase { protected RedisCache $cache; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!\extension_loaded('redis')) { diff --git a/tests/DataStorage/Cookie/CookieJarTest.php b/tests/DataStorage/Cookie/CookieJarTest.php index 177aa21e0..7a41baba3 100644 --- a/tests/DataStorage/Cookie/CookieJarTest.php +++ b/tests/DataStorage/Cookie/CookieJarTest.php @@ -25,6 +25,9 @@ class CookieJarTest extends \PHPUnit\Framework\TestCase { protected CookieJar $jar; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->jar = new CookieJar(); diff --git a/tests/DataStorage/Database/DataMapperAbstractTest.php b/tests/DataStorage/Database/DataMapperAbstractTest.php index d95a861d6..f21a0e695 100644 --- a/tests/DataStorage/Database/DataMapperAbstractTest.php +++ b/tests/DataStorage/Database/DataMapperAbstractTest.php @@ -30,6 +30,9 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase protected array $modelArray; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->model = new BaseModel(); diff --git a/tests/DataStorage/Database/DatabasePoolTest.php b/tests/DataStorage/Database/DatabasePoolTest.php index 30e1801dc..eea13e788 100644 --- a/tests/DataStorage/Database/DatabasePoolTest.php +++ b/tests/DataStorage/Database/DatabasePoolTest.php @@ -27,6 +27,9 @@ class DatabasePoolTest extends \PHPUnit\Framework\TestCase { protected DatabasePool $dbPool; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->dbPool = new DatabasePool(); diff --git a/tests/DataStorage/Database/Query/BuilderTest.php b/tests/DataStorage/Database/Query/BuilderTest.php index 3b41b823b..93110c493 100644 --- a/tests/DataStorage/Database/Query/BuilderTest.php +++ b/tests/DataStorage/Database/Query/BuilderTest.php @@ -27,6 +27,9 @@ class BuilderTest extends \PHPUnit\Framework\TestCase { protected $con; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->con = new MysqlConnection($GLOBALS['CONFIG']['db']['core']['masters']['admin']); diff --git a/tests/DataStorage/Database/Schema/BuilderTest.php b/tests/DataStorage/Database/Schema/BuilderTest.php index 3bcaa79ab..b011ceba4 100644 --- a/tests/DataStorage/Database/Schema/BuilderTest.php +++ b/tests/DataStorage/Database/Schema/BuilderTest.php @@ -26,6 +26,9 @@ class BuilderTest extends \PHPUnit\Framework\TestCase { protected MysqlConnection $con; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->con = new MysqlConnection($GLOBALS['CONFIG']['db']['core']['masters']['admin']); diff --git a/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php b/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php index acf992505..359088619 100644 --- a/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php +++ b/tests/DataStorage/Database/Schema/Grammar/MysqlGrammarTest.php @@ -29,6 +29,9 @@ class MysqlGrammarTest extends \PHPUnit\Framework\TestCase { protected MysqlConnection $con; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->con = new MysqlConnection($GLOBALS['CONFIG']['db']['core']['masters']['admin']); diff --git a/tests/DataStorage/Session/FileSessionHandlerTest.php b/tests/DataStorage/Session/FileSessionHandlerTest.php index 6eced87a7..27067a7be 100644 --- a/tests/DataStorage/Session/FileSessionHandlerTest.php +++ b/tests/DataStorage/Session/FileSessionHandlerTest.php @@ -26,6 +26,9 @@ class FileSessionHandlerTest extends \PHPUnit\Framework\TestCase { protected FileSessionHandler $sh; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (\is_dir(__DIR__ . '/test')) { diff --git a/tests/DataStorage/Session/FileSessionTest.php b/tests/DataStorage/Session/FileSessionTest.php index 4c843cbef..b45da0686 100644 --- a/tests/DataStorage/Session/FileSessionTest.php +++ b/tests/DataStorage/Session/FileSessionTest.php @@ -25,6 +25,9 @@ class FileSessionTest extends \PHPUnit\Framework\TestCase { protected FileSession $session; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->session = new FileSession(); diff --git a/tests/DataStorage/Session/HttpSessionTest.php b/tests/DataStorage/Session/HttpSessionTest.php index 3dfd56167..0c97f6848 100644 --- a/tests/DataStorage/Session/HttpSessionTest.php +++ b/tests/DataStorage/Session/HttpSessionTest.php @@ -25,6 +25,9 @@ class HttpSessionTest extends \PHPUnit\Framework\TestCase { protected HttpSession $session; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->session = new HttpSession(1, '', 1); diff --git a/tests/Dispatcher/DispatcherTest.php b/tests/Dispatcher/DispatcherTest.php index 067965842..04945ddae 100644 --- a/tests/Dispatcher/DispatcherTest.php +++ b/tests/Dispatcher/DispatcherTest.php @@ -34,6 +34,9 @@ class DispatcherTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->app = new class() extends ApplicationAbstract { diff --git a/tests/Event/EventManagerTest.php b/tests/Event/EventManagerTest.php index 942d186f7..9f29bd74f 100644 --- a/tests/Event/EventManagerTest.php +++ b/tests/Event/EventManagerTest.php @@ -27,6 +27,9 @@ class EventManagerTest extends \PHPUnit\Framework\TestCase { protected EventManager $event; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->event = new EventManager(); diff --git a/tests/Localization/L11nManagerTest.php b/tests/Localization/L11nManagerTest.php index 338457a93..0a6fe0662 100644 --- a/tests/Localization/L11nManagerTest.php +++ b/tests/Localization/L11nManagerTest.php @@ -28,6 +28,9 @@ class L11nManagerTest extends \PHPUnit\Framework\TestCase { protected L11nManager $l11nManager; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->l11nManager = new L11nManager('Api'); diff --git a/tests/Localization/LocalizationTest.php b/tests/Localization/LocalizationTest.php index e9fd6303a..6e080c3a2 100644 --- a/tests/Localization/LocalizationTest.php +++ b/tests/Localization/LocalizationTest.php @@ -33,6 +33,9 @@ class LocalizationTest extends \PHPUnit\Framework\TestCase { protected Localization $localization; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->localization = new Localization(); diff --git a/tests/Log/FileLoggerTest.php b/tests/Log/FileLoggerTest.php index fb54c8ab8..3f7b622df 100644 --- a/tests/Log/FileLoggerTest.php +++ b/tests/Log/FileLoggerTest.php @@ -29,6 +29,9 @@ class FileLoggerTest extends \PHPUnit\Framework\TestCase { protected FileLogger $log; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (\is_file(__DIR__ . '/' . \date('Y-m-d') . '.log')) { diff --git a/tests/Math/Matrix/MatrixTest.php b/tests/Math/Matrix/MatrixTest.php index 464cb90d6..771935272 100644 --- a/tests/Math/Matrix/MatrixTest.php +++ b/tests/Math/Matrix/MatrixTest.php @@ -30,6 +30,9 @@ class MatrixTest extends \PHPUnit\Framework\TestCase protected $C = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->A = new Matrix(2, 3); diff --git a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php index 2062c134b..5cbb4281e 100644 --- a/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LevelLevelRegressionTest.php @@ -27,6 +27,9 @@ class LevelLevelRegressionTest extends \PHPUnit\Framework\TestCase { protected $reg = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { // y = 3 + 4 * x diff --git a/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php index 04e4d4370..1de4b61a3 100644 --- a/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LevelLogRegressionTest.php @@ -25,6 +25,9 @@ class LevelLogRegressionTest extends \PHPUnit\Framework\TestCase { protected $reg = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { // y = 1 + log(x) diff --git a/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php index 980fa4ec4..f7edd4175 100644 --- a/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LogLevelRegressionTest.php @@ -25,6 +25,9 @@ class LogLevelRegressionTest extends \PHPUnit\Framework\TestCase { protected $reg = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { // ln(y) = -1 + 2 * x => y = e^(-1 + 2 * x) diff --git a/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php index 005589508..f1f020181 100644 --- a/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/LogLogRegressionTest.php @@ -25,6 +25,9 @@ class LogLogRegressionTest extends \PHPUnit\Framework\TestCase { protected $reg = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { // ln(y) = 2 + 3 * ln(x) => y = e^(2 + 3 * ln(x)) diff --git a/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php b/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php index fe7eece7d..6666fc297 100644 --- a/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php +++ b/tests/Math/Statistic/Forecast/Regression/PolynomialRegressionTest.php @@ -25,6 +25,9 @@ class PolynomialRegressionTest extends \PHPUnit\Framework\TestCase { protected $reg = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { // y = 1.0 + 2.0 * x + 3.0 * x^2 diff --git a/tests/Message/Console/ConsoleHeaderTest.php b/tests/Message/Console/ConsoleHeaderTest.php index 9572e9e82..49c40ac6f 100644 --- a/tests/Message/Console/ConsoleHeaderTest.php +++ b/tests/Message/Console/ConsoleHeaderTest.php @@ -24,6 +24,9 @@ class ConsoleHeaderTest extends \PHPUnit\Framework\TestCase { private ConsoleHeader $header; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->header = new ConsoleHeader(); diff --git a/tests/Message/Console/ConsoleRequestTest.php b/tests/Message/Console/ConsoleRequestTest.php index 47fe7e28a..402b38d6a 100644 --- a/tests/Message/Console/ConsoleRequestTest.php +++ b/tests/Message/Console/ConsoleRequestTest.php @@ -27,6 +27,9 @@ class ConsoleRequestTest extends \PHPUnit\Framework\TestCase { private ConsoleRequest $request; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->request = new ConsoleRequest(new Argument('get:some/test/path'), $l11n = new Localization()); diff --git a/tests/Message/HeaderAbstractTest.php b/tests/Message/HeaderAbstractTest.php index 0450f8a28..670b4dd2c 100644 --- a/tests/Message/HeaderAbstractTest.php +++ b/tests/Message/HeaderAbstractTest.php @@ -27,6 +27,9 @@ class HeaderAbstractTest extends \PHPUnit\Framework\TestCase { protected $header = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->header = new class() extends HeaderAbstract diff --git a/tests/Message/Http/HttpHeaderTest.php b/tests/Message/Http/HttpHeaderTest.php index cde1ef74c..f3c1e00e5 100644 --- a/tests/Message/Http/HttpHeaderTest.php +++ b/tests/Message/Http/HttpHeaderTest.php @@ -28,6 +28,9 @@ class HttpHeaderTest extends \PHPUnit\Framework\TestCase { protected HttpHeader $header; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->header = new HttpHeader(); diff --git a/tests/Message/Http/HttpResponseTest.php b/tests/Message/Http/HttpResponseTest.php index 9166e5c35..8ffc54f2e 100644 --- a/tests/Message/Http/HttpResponseTest.php +++ b/tests/Message/Http/HttpResponseTest.php @@ -26,6 +26,9 @@ class ResponseTest extends \PHPUnit\Framework\TestCase { protected HttpResponse $response; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->response = new HttpResponse(); diff --git a/tests/Message/Mail/EmailTest.php b/tests/Message/Mail/EmailTest.php index 79c0447b2..2025faecb 100644 --- a/tests/Message/Mail/EmailTest.php +++ b/tests/Message/Mail/EmailTest.php @@ -28,6 +28,9 @@ class EmailTestTest extends \PHPUnit\Framework\TestCase { protected Email $mail; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->mail = new Email(); diff --git a/tests/Message/Mail/MailHandlerTest.php b/tests/Message/Mail/MailHandlerTest.php index 3747d450f..b392bd3bc 100644 --- a/tests/Message/Mail/MailHandlerTest.php +++ b/tests/Message/Mail/MailHandlerTest.php @@ -31,6 +31,9 @@ class MailHandlerTest extends \PHPUnit\Framework\TestCase { protected MailHandler $handler; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->handler = new MailHandler(); diff --git a/tests/Message/ResponseAbstractTest.php b/tests/Message/ResponseAbstractTest.php index bfa241f94..9d4bf65aa 100644 --- a/tests/Message/ResponseAbstractTest.php +++ b/tests/Message/ResponseAbstractTest.php @@ -28,6 +28,9 @@ class ResponseAbstractTest extends \PHPUnit\Framework\TestCase { protected $response = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->response = new class() extends ResponseAbstract diff --git a/tests/Model/Html/HeadTest.php b/tests/Model/Html/HeadTest.php index b7d567155..bed65600d 100644 --- a/tests/Model/Html/HeadTest.php +++ b/tests/Model/Html/HeadTest.php @@ -26,6 +26,9 @@ class HeadTest extends \PHPUnit\Framework\TestCase { protected Head $head; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->head = new Head(); diff --git a/tests/Model/Html/MetaTest.php b/tests/Model/Html/MetaTest.php index d46e56dea..74edfc222 100644 --- a/tests/Model/Html/MetaTest.php +++ b/tests/Model/Html/MetaTest.php @@ -25,6 +25,9 @@ class MetaTest extends \PHPUnit\Framework\TestCase { protected Meta $meta; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->meta = new Meta(); diff --git a/tests/Module/ModuleAbstractTest.php b/tests/Module/ModuleAbstractTest.php index 82e6e476b..1e3869fe2 100644 --- a/tests/Module/ModuleAbstractTest.php +++ b/tests/Module/ModuleAbstractTest.php @@ -36,6 +36,9 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase { protected $module = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->module = new class() extends ModuleAbstract @@ -214,6 +217,9 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase ); } + /** + * Create test database schema + */ private function dbSetup() : void { BaseModelMapper::clearCache(); @@ -289,6 +295,9 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase )->execute(); } + /** + * Teardown test database + */ private function dbTeardown() : void { $GLOBALS['dbpool']->get()->con->prepare('DROP TABLE test_conditional')->execute(); diff --git a/tests/Module/ModuleManagerTest.php b/tests/Module/ModuleManagerTest.php index fae46ec64..c047b51b8 100644 --- a/tests/Module/ModuleManagerTest.php +++ b/tests/Module/ModuleManagerTest.php @@ -35,6 +35,9 @@ class ModuleManagerTest extends \PHPUnit\Framework\TestCase protected ModuleManager $moduleManager; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->app = new class() extends ApplicationAbstract { diff --git a/tests/Module/NullModuleTest.php b/tests/Module/NullModuleTest.php index e0d4dad6e..c5f065bef 100644 --- a/tests/Module/NullModuleTest.php +++ b/tests/Module/NullModuleTest.php @@ -30,6 +30,9 @@ final class NullModuleTest extends \PHPUnit\Framework\TestCase { protected NullModule $module; + /** + * {@inheritdoc} + */ protected function setUp() : void { $app = new class() extends ApplicationAbstract diff --git a/tests/Router/SocketRouterTest.php b/tests/Router/SocketRouterTest.php index e925fb477..e7a70dc0d 100644 --- a/tests/Router/SocketRouterTest.php +++ b/tests/Router/SocketRouterTest.php @@ -30,6 +30,9 @@ class SocketRouterTest extends \PHPUnit\Framework\TestCase { protected SocketRouter $router; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->router = new SocketRouter(); diff --git a/tests/Router/WebRouterTest.php b/tests/Router/WebRouterTest.php index 7add6a5a6..93e4e6417 100644 --- a/tests/Router/WebRouterTest.php +++ b/tests/Router/WebRouterTest.php @@ -34,6 +34,9 @@ class WebRouterTest extends \PHPUnit\Framework\TestCase { protected WebRouter $router; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->router = new WebRouter(); diff --git a/tests/Socket/Client/ClientTest.php b/tests/Socket/Client/ClientTest.php index 3ea511d20..543be7210 100644 --- a/tests/Socket/Client/ClientTest.php +++ b/tests/Socket/Client/ClientTest.php @@ -45,6 +45,9 @@ class ClientTest extends \PHPUnit\Framework\TestCase } } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!Autoloader::exists('\Model\CoreSettings')) { diff --git a/tests/Socket/Server/ServerTest.php b/tests/Socket/Server/ServerTest.php index 98deafa68..8b312ac45 100644 --- a/tests/Socket/Server/ServerTest.php +++ b/tests/Socket/Server/ServerTest.php @@ -45,6 +45,9 @@ class ServerTest extends \PHPUnit\Framework\TestCase } } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!Autoloader::exists('\Model\CoreSettings')) { diff --git a/tests/Stdlib/Base/AddressTest.php b/tests/Stdlib/Base/AddressTest.php index 0e47e7082..86a4800c0 100644 --- a/tests/Stdlib/Base/AddressTest.php +++ b/tests/Stdlib/Base/AddressTest.php @@ -26,6 +26,9 @@ class AddressTest extends \PHPUnit\Framework\TestCase { protected Address $address; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->address = new Address(); diff --git a/tests/Stdlib/Base/LocationTest.php b/tests/Stdlib/Base/LocationTest.php index 7443cda69..75b009ebd 100644 --- a/tests/Stdlib/Base/LocationTest.php +++ b/tests/Stdlib/Base/LocationTest.php @@ -26,6 +26,9 @@ class LocationTest extends \PHPUnit\Framework\TestCase { protected Location $location; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->location = new Location(); diff --git a/tests/Stdlib/Graph/GraphTest.php b/tests/Stdlib/Graph/GraphTest.php index 7cda956ef..38734d972 100644 --- a/tests/Stdlib/Graph/GraphTest.php +++ b/tests/Stdlib/Graph/GraphTest.php @@ -26,6 +26,9 @@ class GraphTest extends \PHPUnit\Framework\TestCase { protected Graph $graph; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->graph = new Graph(); diff --git a/tests/System/File/Ftp/DirectoryTest.php b/tests/System/File/Ftp/DirectoryTest.php index a522af538..78f1b9c56 100644 --- a/tests/System/File/Ftp/DirectoryTest.php +++ b/tests/System/File/Ftp/DirectoryTest.php @@ -33,6 +33,9 @@ class DirectoryTest extends \PHPUnit\Framework\TestCase self::$con = Directory::ftpConnect(new HttpUri(self::BASE)); } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (self::$con === false) { diff --git a/tests/System/File/Ftp/FileTest.php b/tests/System/File/Ftp/FileTest.php index ac597c7bf..22327e3ec 100644 --- a/tests/System/File/Ftp/FileTest.php +++ b/tests/System/File/Ftp/FileTest.php @@ -35,6 +35,9 @@ class FileTest extends \PHPUnit\Framework\TestCase self::$con = File::ftpConnect(new HttpUri(self::BASE)); } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (self::$con === false) { diff --git a/tests/System/File/Ftp/FtpStorageTest.php b/tests/System/File/Ftp/FtpStorageTest.php index d2e8aab7b..1976d7bc5 100644 --- a/tests/System/File/Ftp/FtpStorageTest.php +++ b/tests/System/File/Ftp/FtpStorageTest.php @@ -36,6 +36,9 @@ class FtpStorageTest extends \PHPUnit\Framework\TestCase self::$con = Directory::ftpConnect(new HttpUri(self::BASE)); } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (self::$con === false) { diff --git a/tests/Utils/ArrayUtilsTest.php b/tests/Utils/ArrayUtilsTest.php index d817f3302..a4574f791 100644 --- a/tests/Utils/ArrayUtilsTest.php +++ b/tests/Utils/ArrayUtilsTest.php @@ -314,6 +314,11 @@ class ArrayUtilsTest extends \PHPUnit\Framework\TestCase self::assertEquals([1, 3, 4], ArrayUtils::abs([-1, 3, -4])); } + /** + * @testdox The difference of two arrays can be evaluated recursively + * @covers phpOMS\Utils\ArrayUtils + * @group framework + */ public function testArrayDiffAssocResursive() : void { self::assertEquals( diff --git a/tests/Utils/Barcode/C128AbstractTest.php b/tests/Utils/Barcode/C128AbstractTest.php index a9e8fa968..fe10a9b35 100644 --- a/tests/Utils/Barcode/C128AbstractTest.php +++ b/tests/Utils/Barcode/C128AbstractTest.php @@ -23,6 +23,9 @@ class C128AbstractTest extends \PHPUnit\Framework\TestCase { protected $obj = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->obj = new class() extends C128Abstract {}; diff --git a/tests/Utils/Converter/CurrencyTest.php b/tests/Utils/Converter/CurrencyTest.php index 80f623b59..2b4fd4616 100644 --- a/tests/Utils/Converter/CurrencyTest.php +++ b/tests/Utils/Converter/CurrencyTest.php @@ -30,6 +30,9 @@ class CurrencyTest extends \PHPUnit\Framework\TestCase { private static $reachable; + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!isset(self::$reachable)) { diff --git a/tests/Utils/IO/Csv/CsvSettingsTest.php b/tests/Utils/IO/Csv/CsvSettingsTest.php index 3f7f5afe2..c659fde3e 100644 --- a/tests/Utils/IO/Csv/CsvSettingsTest.php +++ b/tests/Utils/IO/Csv/CsvSettingsTest.php @@ -36,6 +36,11 @@ class CsvSettingsTest extends \PHPUnit\Framework\TestCase self::assertEquals(';', CsvSettings::getFileDelimiter(\fopen(__DIR__ . '/semicolon.csv', 'r'))); } + /** + * @testdox The delimiter in a csv string can be guessed + * @covers phpOMS\Utils\IO\Csv\CsvSettings + * @group framework + */ public function testStringDelimiter() : void { self::assertEquals(':', CsvSettings::getStringDelimiter(\file_get_contents(__DIR__ . '/colon.csv'))); diff --git a/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php b/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php index 3affd0bd1..11a763be3 100644 --- a/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php +++ b/tests/Utils/IO/Spreadsheet/SpreadsheetDatabaseMapperTest.php @@ -35,6 +35,9 @@ class SpreadsheetDatabaseMapperTest extends \PHPUnit\Framework\TestCase Autoloader::addPath(__DIR__ . '/../../../../Resources/'); } + /** + * {@inheritdoc} + */ protected function setUp() : void { if (!\extension_loaded('pdo_sqlite')) { diff --git a/tests/Utils/StringCompareTest.php b/tests/Utils/StringCompareTest.php index 481f0a87d..58f64a294 100644 --- a/tests/Utils/StringCompareTest.php +++ b/tests/Utils/StringCompareTest.php @@ -27,6 +27,9 @@ class StringCompareTest extends \PHPUnit\Framework\TestCase { private StringCompare $dict; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->dict = new StringCompare( diff --git a/tests/Utils/TaskSchedule/TaskAbstractTest.php b/tests/Utils/TaskSchedule/TaskAbstractTest.php index 4cf9bf267..1fd29e5b0 100644 --- a/tests/Utils/TaskSchedule/TaskAbstractTest.php +++ b/tests/Utils/TaskSchedule/TaskAbstractTest.php @@ -26,6 +26,9 @@ class TaskAbstractTest extends \PHPUnit\Framework\TestCase { private $class = null; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->class = new class('') extends TaskAbstract { diff --git a/tests/Validation/Network/HostnameTest.php b/tests/Validation/Network/HostnameTest.php index d7fb25650..e54bf0c1b 100644 --- a/tests/Validation/Network/HostnameTest.php +++ b/tests/Validation/Network/HostnameTest.php @@ -36,6 +36,11 @@ class HostnameTest extends \PHPUnit\Framework\TestCase self::assertFalse(Hostname::isValid('//somethign/wrong')); } + /** + * @testdox A IP can be validated as hostname + * @covers phpOMS\Validation\Network\Hostname + * @group framework + */ public function testHostnameIp() : void { self::assertTrue(Hostname::isValid('127.0.0.1')); diff --git a/tests/Views/ViewTest.php b/tests/Views/ViewTest.php index 0197955fa..bcb88d821 100644 --- a/tests/Views/ViewTest.php +++ b/tests/Views/ViewTest.php @@ -37,6 +37,9 @@ class ViewTest extends \PHPUnit\Framework\TestCase protected ApplicationAbstract $app; + /** + * {@inheritdoc} + */ protected function setUp() : void { $this->dbPool = new DatabasePool();