diff --git a/tests/unit/Cache/Adapter/Apcu/ClearCest.php b/tests/unit/Cache/Adapter/Apcu/ClearCest.php index c45628c75ff..e5c12d62122 100644 --- a/tests/unit/Cache/Adapter/Apcu/ClearCest.php +++ b/tests/unit/Cache/Adapter/Apcu/ClearCest.php @@ -66,10 +66,10 @@ public function storageAdapterApcuClear(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws Exception + * @author Phalcon Team */ public function storageAdapterApcuClearTwice(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php b/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php index cb28d6b0873..ee3718bdd22 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/ClearCest.php @@ -12,12 +12,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; -use Phalcon\Cache\Adapter\Apcu; +use Exception; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class ClearCest @@ -31,10 +31,10 @@ class ClearCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function cacheAdapterLibmemcachedClear(UnitTester $I) { @@ -67,10 +67,10 @@ public function cacheAdapterLibmemcachedClear(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function cacheAdapterLibmemcachedClearTwice(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php b/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php index 785b458dc4b..f0172d391b1 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php @@ -12,13 +12,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\AdapterInterface; -use Phalcon\Cache\Adapter\Apcu; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class ConstructCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php b/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php index e2c9fc8ee37..9e5c25ff596 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php @@ -12,12 +12,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; -use Phalcon\Cache\Adapter\Apcu; +use Exception; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class DecrementCest @@ -31,10 +31,10 @@ class DecrementCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function cacheAdapterLibmemcachedDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php b/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php index 61407f5a23e..bbe143b859c 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php @@ -12,12 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; -use Phalcon\Cache\Adapter\Apcu; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class DeleteCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php index cff32ba2e9a..5d13874e6bc 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php @@ -12,12 +12,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Memcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class GetAdapterCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php index 524643af9f9..d186e24992a 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class GetKeysCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php index fd1d395eb59..1f972b6d5ba 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class GetPrefixCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php b/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php index 2473ef7c7e1..7814aac8402 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php @@ -13,12 +13,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; use Codeception\Example; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use stdClass; use UnitTester; +use function getOptionsLibmemcached; /** * Class GetSetCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/HasCest.php b/tests/unit/Cache/Adapter/Libmemcached/HasCest.php index 8ffc3918db5..664e866d091 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/HasCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/HasCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class HasCest diff --git a/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php b/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php index 29e7acaf455..85b20067c0f 100644 --- a/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached; -use function getOptionsLibmemcached; use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; use UnitTester; +use function getOptionsLibmemcached; /** * Class IncrementCest diff --git a/tests/unit/Cache/Adapter/Memory/ClearCest.php b/tests/unit/Cache/Adapter/Memory/ClearCest.php index 71fd6e84a86..2fabf0499a2 100644 --- a/tests/unit/Cache/Adapter/Memory/ClearCest.php +++ b/tests/unit/Cache/Adapter/Memory/ClearCest.php @@ -12,8 +12,6 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Memory; -use function getOptionsLibmemcached; -use Phalcon\Cache\Adapter\Libmemcached; use Phalcon\Cache\Adapter\Memory; use Phalcon\Storage\SerializerFactory; use UnitTester; diff --git a/tests/unit/Cache/Adapter/Redis/ClearCest.php b/tests/unit/Cache/Adapter/Redis/ClearCest.php index acf51d1619d..8264754ec57 100644 --- a/tests/unit/Cache/Adapter/Redis/ClearCest.php +++ b/tests/unit/Cache/Adapter/Redis/ClearCest.php @@ -12,12 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; -use Phalcon\Cache\Adapter\Memory; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class ClearCest diff --git a/tests/unit/Cache/Adapter/Redis/ConstructCest.php b/tests/unit/Cache/Adapter/Redis/ConstructCest.php index 8a74dd46d2c..ebda52a7fbf 100644 --- a/tests/unit/Cache/Adapter/Redis/ConstructCest.php +++ b/tests/unit/Cache/Adapter/Redis/ConstructCest.php @@ -12,12 +12,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\AdapterInterface; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class ConstructCest diff --git a/tests/unit/Cache/Adapter/Redis/DecrementCest.php b/tests/unit/Cache/Adapter/Redis/DecrementCest.php index 9d31b71c56a..32f8c6a259d 100644 --- a/tests/unit/Cache/Adapter/Redis/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Redis/DecrementCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class DecrementCest diff --git a/tests/unit/Cache/Adapter/Redis/DeleteCest.php b/tests/unit/Cache/Adapter/Redis/DeleteCest.php index 6e89afcf1fc..17f9169aaf0 100644 --- a/tests/unit/Cache/Adapter/Redis/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Redis/DeleteCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class DeleteCest diff --git a/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php b/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php index 98017ee42e3..cc43ca97d46 100644 --- a/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetAdapterCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class GetAdapterCest diff --git a/tests/unit/Cache/Adapter/Redis/GetKeysCest.php b/tests/unit/Cache/Adapter/Redis/GetKeysCest.php index 04b62757af0..0956073fcc4 100644 --- a/tests/unit/Cache/Adapter/Redis/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetKeysCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class GetKeysCest diff --git a/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php b/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php index db23c776366..e853ca78525 100644 --- a/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetPrefixCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class GetPrefixCest diff --git a/tests/unit/Cache/Adapter/Redis/GetSetCest.php b/tests/unit/Cache/Adapter/Redis/GetSetCest.php index b34ca95662a..cf03af7469f 100644 --- a/tests/unit/Cache/Adapter/Redis/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Redis/GetSetCest.php @@ -13,12 +13,12 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; use Codeception\Example; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use stdClass; use UnitTester; +use function getOptionsRedis; /** * Class GetSetCest diff --git a/tests/unit/Cache/Adapter/Redis/HasCest.php b/tests/unit/Cache/Adapter/Redis/HasCest.php index 4a0b2d79697..1697a7bda14 100644 --- a/tests/unit/Cache/Adapter/Redis/HasCest.php +++ b/tests/unit/Cache/Adapter/Redis/HasCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class HasCest diff --git a/tests/unit/Cache/Adapter/Redis/IncrementCest.php b/tests/unit/Cache/Adapter/Redis/IncrementCest.php index 5dfd20fd3c7..d61e8c13630 100644 --- a/tests/unit/Cache/Adapter/Redis/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Redis/IncrementCest.php @@ -12,11 +12,11 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Redis; -use function getOptionsRedis; use Phalcon\Cache\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; use UnitTester; +use function getOptionsRedis; /** * Class IncrementCest diff --git a/tests/unit/Cache/Adapter/Stream/ClearCest.php b/tests/unit/Cache/Adapter/Stream/ClearCest.php index 72ce1898cff..5bdaa7cc633 100644 --- a/tests/unit/Cache/Adapter/Stream/ClearCest.php +++ b/tests/unit/Cache/Adapter/Stream/ClearCest.php @@ -12,8 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; -use function getOptionsRedis; -use Phalcon\Cache\Adapter\Redis; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -30,10 +29,10 @@ class ClearCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamClear(UnitTester $I) { @@ -66,10 +65,10 @@ public function storageAdapterStreamClear(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamClearTwice(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/DecrementCest.php b/tests/unit/Cache/Adapter/Stream/DecrementCest.php index 670267bd44b..c8cc68dccb1 100644 --- a/tests/unit/Cache/Adapter/Stream/DecrementCest.php +++ b/tests/unit/Cache/Adapter/Stream/DecrementCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -27,10 +28,10 @@ class DecrementCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamDecrement(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/DeleteCest.php b/tests/unit/Cache/Adapter/Stream/DeleteCest.php index 562e7ad21b4..6121979b772 100644 --- a/tests/unit/Cache/Adapter/Stream/DeleteCest.php +++ b/tests/unit/Cache/Adapter/Stream/DeleteCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -27,10 +28,10 @@ class DeleteCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamDelete(UnitTester $I) { @@ -55,10 +56,10 @@ public function storageAdapterStreamDelete(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamDeleteTwice(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php b/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php index 6a2b3e87a4d..294a391a4cb 100644 --- a/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetAdapterCest.php @@ -12,7 +12,6 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; -use function outputDir; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; diff --git a/tests/unit/Cache/Adapter/Stream/GetKeysCest.php b/tests/unit/Cache/Adapter/Stream/GetKeysCest.php index b0829a38b94..0d5f0c5b973 100644 --- a/tests/unit/Cache/Adapter/Stream/GetKeysCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetKeysCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -28,10 +29,10 @@ class GetKeysCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamGetKeys(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/GetSetCest.php b/tests/unit/Cache/Adapter/Stream/GetSetCest.php index f8a63350cbe..5ea3afffbf9 100644 --- a/tests/unit/Cache/Adapter/Stream/GetSetCest.php +++ b/tests/unit/Cache/Adapter/Stream/GetSetCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -27,10 +28,10 @@ class GetSetCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamSet(UnitTester $I) { @@ -56,10 +57,10 @@ public function storageAdapterStreamSet(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamGet(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/HasCest.php b/tests/unit/Cache/Adapter/Stream/HasCest.php index e8474492bf9..ebf36eaf913 100644 --- a/tests/unit/Cache/Adapter/Stream/HasCest.php +++ b/tests/unit/Cache/Adapter/Stream/HasCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -28,10 +29,10 @@ class HasCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamHas(UnitTester $I) { diff --git a/tests/unit/Cache/Adapter/Stream/IncrementCest.php b/tests/unit/Cache/Adapter/Stream/IncrementCest.php index 5d04dde8117..582af129637 100644 --- a/tests/unit/Cache/Adapter/Stream/IncrementCest.php +++ b/tests/unit/Cache/Adapter/Stream/IncrementCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Cache\Adapter\Stream; +use Exception; use Phalcon\Cache\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -27,10 +28,10 @@ class IncrementCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamIncrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Apcu/ClearCest.php b/tests/unit/Storage/Adapter/Apcu/ClearCest.php index d43a977c782..73a42950edf 100644 --- a/tests/unit/Storage/Adapter/Apcu/ClearCest.php +++ b/tests/unit/Storage/Adapter/Apcu/ClearCest.php @@ -12,8 +12,8 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Apcu; +use Exception; use Phalcon\Storage\Adapter\Apcu; -use Phalcon\Storage\AdapterFactory; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\ApcuTrait; use UnitTester; @@ -30,10 +30,10 @@ class ClearCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterApcuClear(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php b/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php index bec27ac00db..2e3332065a2 100644 --- a/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php +++ b/tests/unit/Storage/Adapter/Libmemcached/ConstructCest.php @@ -14,9 +14,7 @@ use DateInterval; use Exception; -use function outputDir; use Phalcon\Storage\Adapter\AdapterInterface; -use Phalcon\Storage\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Storage\Adapter\Libmemcached; use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait; diff --git a/tests/unit/Storage/Adapter/Redis/ClearCest.php b/tests/unit/Storage/Adapter/Redis/ClearCest.php index fc17053dfca..92527f28624 100644 --- a/tests/unit/Storage/Adapter/Redis/ClearCest.php +++ b/tests/unit/Storage/Adapter/Redis/ClearCest.php @@ -12,7 +12,6 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Redis; -use Phalcon\Storage\Adapter\Memory; use Phalcon\Storage\Adapter\Redis; use Phalcon\Storage\SerializerFactory; use Phalcon\Test\Fixtures\Traits\RedisTrait; diff --git a/tests/unit/Storage/Adapter/Stream/ClearCest.php b/tests/unit/Storage/Adapter/Stream/ClearCest.php index f73e91bc04e..64da06e3c28 100644 --- a/tests/unit/Storage/Adapter/Stream/ClearCest.php +++ b/tests/unit/Storage/Adapter/Stream/ClearCest.php @@ -12,8 +12,7 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; -use function getOptionsRedis; -use Phalcon\Storage\Adapter\Redis; +use Exception; use Phalcon\Storage\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -30,10 +29,10 @@ class ClearCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamClear(UnitTester $I) { @@ -66,10 +65,10 @@ public function storageAdapterStreamClear(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-03-31 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamClearTwice(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/DecrementCest.php b/tests/unit/Storage/Adapter/Stream/DecrementCest.php index b81b3c05686..f0f154565f6 100644 --- a/tests/unit/Storage/Adapter/Stream/DecrementCest.php +++ b/tests/unit/Storage/Adapter/Stream/DecrementCest.php @@ -29,11 +29,11 @@ class DecrementCest * @param UnitTester $I * * @throws Exception - * @since 2019-04-24 - * + * @throws \Exception * @author Phalcon Team * - * @throws \Exception + * @since 2019-04-24 + * */ public function storageAdapterStreamDecrement(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/DeleteCest.php b/tests/unit/Storage/Adapter/Stream/DeleteCest.php index 0a0e5743713..4ba03789632 100644 --- a/tests/unit/Storage/Adapter/Stream/DeleteCest.php +++ b/tests/unit/Storage/Adapter/Stream/DeleteCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; +use Exception; use Phalcon\Storage\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -27,10 +28,10 @@ class DeleteCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamDelete(UnitTester $I) { @@ -55,10 +56,10 @@ public function storageAdapterStreamDelete(UnitTester $I) * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamDeleteTwice(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/GetKeysCest.php b/tests/unit/Storage/Adapter/Stream/GetKeysCest.php index 193a07b579e..d451c03906d 100644 --- a/tests/unit/Storage/Adapter/Stream/GetKeysCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetKeysCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; +use Exception; use Phalcon\Storage\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -28,10 +29,10 @@ class GetKeysCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamGetKeys(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/GetSetCest.php b/tests/unit/Storage/Adapter/Stream/GetSetCest.php index 738fd719b48..4aad25e50e5 100644 --- a/tests/unit/Storage/Adapter/Stream/GetSetCest.php +++ b/tests/unit/Storage/Adapter/Stream/GetSetCest.php @@ -12,8 +12,8 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; +use Exception; use Phalcon\Storage\Adapter\Stream; -use Phalcon\Storage\Exception; use Phalcon\Storage\SerializerFactory; use UnitTester; use function file_put_contents; @@ -30,11 +30,11 @@ class GetSetCest * * @param UnitTester $I * - * @since 2019-04-24 - * + * @throws Exception * @author Phalcon Team * - * @throws \Exception + * @since 2019-04-24 + * */ public function storageAdapterStreamSet(UnitTester $I) { @@ -60,11 +60,11 @@ public function storageAdapterStreamSet(UnitTester $I) * * @param UnitTester $I * - * @since 2019-04-24 - * + * @throws Exception * @author Phalcon Team * - * @throws \Exception + * @since 2019-04-24 + * */ public function storageAdapterStreamGet(UnitTester $I) { @@ -91,7 +91,7 @@ public function storageAdapterStreamGet(UnitTester $I) * * @param UnitTester $I * - * @throws \Exception + * @throws Exception * @since 2019-04-24 * * @author Phalcon Team diff --git a/tests/unit/Storage/Adapter/Stream/HasCest.php b/tests/unit/Storage/Adapter/Stream/HasCest.php index ea5eab970a8..34d9586bebe 100644 --- a/tests/unit/Storage/Adapter/Stream/HasCest.php +++ b/tests/unit/Storage/Adapter/Stream/HasCest.php @@ -12,6 +12,7 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; +use Exception; use Phalcon\Storage\Adapter\Stream; use Phalcon\Storage\SerializerFactory; use UnitTester; @@ -28,10 +29,10 @@ class HasCest * * @param UnitTester $I * - * @author Phalcon Team + * @throws Exception * @since 2019-04-24 * - * @throws \Exception + * @author Phalcon Team */ public function storageAdapterStreamHas(UnitTester $I) { diff --git a/tests/unit/Storage/Adapter/Stream/IncrementCest.php b/tests/unit/Storage/Adapter/Stream/IncrementCest.php index 59f94c63b79..0b54a4b26f3 100644 --- a/tests/unit/Storage/Adapter/Stream/IncrementCest.php +++ b/tests/unit/Storage/Adapter/Stream/IncrementCest.php @@ -12,8 +12,8 @@ namespace Phalcon\Test\Unit\Storage\Adapter\Stream; +use Exception; use Phalcon\Storage\Adapter\Stream; -use Phalcon\Storage\Exception; use Phalcon\Storage\SerializerFactory; use UnitTester; use function outputDir; @@ -28,7 +28,7 @@ class IncrementCest * * @param UnitTester $I * - * @throws \Exception + * @throws Exception * @since 2019-04-24 * * @author Phalcon Team diff --git a/tests/unit/Storage/AdapterFactory/NewInstanceCest.php b/tests/unit/Storage/AdapterFactory/NewInstanceCest.php index dc7c31ffb8b..16781ec4f96 100644 --- a/tests/unit/Storage/AdapterFactory/NewInstanceCest.php +++ b/tests/unit/Storage/AdapterFactory/NewInstanceCest.php @@ -13,8 +13,8 @@ namespace Phalcon\Test\Unit\Storage\AdapterFactory; use Phalcon\Service\Exception; -use Phalcon\Storage\Adapter\Php; use Phalcon\Storage\Adapter\Apcu; +use Phalcon\Storage\Adapter\Php; use Phalcon\Storage\AdapterFactory; use Phalcon\Storage\SerializerFactory; use UnitTester;