From 0e2a289f9f847cde8de4ce8b077229335bc166b8 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 24 Mar 2017 20:34:18 +0100 Subject: [PATCH] Updated to phpunit 6 --- composer.json | 7 +++---- config/config.php | 6 +++--- module/CLI/test/Command/Api/DisableKeyCommandTest.php | 2 +- module/CLI/test/Command/Api/GenerateKeyCommandTest.php | 2 +- module/CLI/test/Command/Api/ListKeysCommandTest.php | 2 +- .../CLI/test/Command/Config/GenerateCharsetCommandTest.php | 2 +- module/CLI/test/Command/Install/InstallCommandTest.php | 2 +- .../test/Command/Shortcode/GeneratePreviewCommandTest.php | 2 +- .../Command/Shortcode/GenerateShortcodeCommandTest.php | 2 +- module/CLI/test/Command/Shortcode/GetVisitsCommandTest.php | 2 +- .../test/Command/Shortcode/ListShortcodesCommandTest.php | 2 +- .../CLI/test/Command/Shortcode/ResolveUrlCommandTest.php | 2 +- module/CLI/test/Command/Visit/ProcessVisitsCommandTest.php | 2 +- module/CLI/test/ConfigProviderTest.php | 2 +- module/CLI/test/Factory/ApplicationFactoryTest.php | 2 +- module/Common/test/ConfigProviderTest.php | 2 +- module/Common/test/Factory/CacheFactoryTest.php | 2 +- module/Common/test/Factory/EntityManagerFactoryTest.php | 2 +- module/Common/test/Factory/LoggerFactoryTest.php | 2 +- module/Common/test/Factory/TranslatorFactoryTest.php | 2 +- module/Common/test/Image/ImageBuilderFactoryTest.php | 2 +- module/Common/test/Image/ImageFactoryTest.php | 2 +- module/Common/test/Middleware/LocaleMiddlewareTest.php | 2 +- .../test/Paginator/PaginableRepositoryAdapterTest.php | 2 +- module/Common/test/Service/IpLocationResolverTest.php | 2 +- module/Common/test/Service/PreviewGeneratorTest.php | 2 +- .../Common/test/Twig/Extension/TranslatorExtensionTest.php | 2 +- module/Common/test/Util/DateRangeTest.php | 2 +- module/Core/test/Action/PreviewActionTest.php | 2 +- module/Core/test/Action/QrCodeActionTest.php | 2 +- module/Core/test/Action/RedirectActionTest.php | 2 +- module/Core/test/ConfigProviderTest.php | 2 +- module/Core/test/Entity/TagTest.php | 2 +- module/Core/test/Middleware/QrCodeCacheMiddlewareTest.php | 2 +- module/Core/test/Options/AppOptionsFactoryTest.php | 2 +- module/Core/test/Service/ShortUrlServiceTest.php | 2 +- module/Core/test/Service/UrlShortenerTest.php | 2 +- module/Core/test/Service/VisitServiceTest.php | 2 +- module/Core/test/Service/VisitsTrackerTest.php | 2 +- module/Rest/test/Action/AuthenticateActionTest.php | 2 +- module/Rest/test/Action/CreateShortcodeActionTest.php | 2 +- module/Rest/test/Action/EditTagsActionTest.php | 2 +- module/Rest/test/Action/GetVisitsActionTest.php | 2 +- module/Rest/test/Action/ListShortcodesActionTest.php | 2 +- module/Rest/test/Action/ResolveUrlActionTest.php | 2 +- module/Rest/test/Authentication/JWTServiceTest.php | 2 +- module/Rest/test/ConfigProviderTest.php | 2 +- module/Rest/test/ErrorHandler/JsonErrorHandlerTest.php | 2 +- module/Rest/test/Middleware/BodyParserMiddlewareTest.php | 2 +- .../test/Middleware/CheckAuthenticationMiddlewareTest.php | 2 +- module/Rest/test/Middleware/CrossDomainMiddlewareTest.php | 2 +- module/Rest/test/Middleware/PathVersionMiddlewareTest.php | 2 +- module/Rest/test/Service/ApiKeyServiceTest.php | 2 +- module/Rest/test/Util/RestUtilsTest.php | 2 +- 54 files changed, 58 insertions(+), 59 deletions(-) diff --git a/composer.json b/composer.json index f012cab4..da746f03 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "zendframework/zend-paginator": "^2.6", "zendframework/zend-config": "^2.6", "zendframework/zend-i18n": "^2.7", - "mtymek/expressive-config-manager": "^0.4", + "zendframework/zend-config-aggregator": "^0.1", "acelaya/zsm-annotated-services": "^0.2.0", "acelaya/ze-content-based-error-handler": "^1.0", "doctrine/orm": "^2.5", @@ -37,13 +37,12 @@ "doctrine/migrations": "^1.4" }, "require-dev": { - "phpunit/phpunit": "^5.0", + "phpunit/phpunit": "^5.7 || ^6.0", "squizlabs/php_codesniffer": "^2.3", "roave/security-advisories": "dev-master", "filp/whoops": "^2.0", "symfony/var-dumper": "^3.0", - "vlucas/phpdotenv": "^2.2", - "phly/changelog-generator": "^2.1" + "vlucas/phpdotenv": "^2.2" }, "autoload": { "psr-4": { diff --git a/config/config.php b/config/config.php index 5eec4734..32644060 100644 --- a/config/config.php +++ b/config/config.php @@ -4,7 +4,7 @@ use Shlinkio\Shlink\CLI; use Shlinkio\Shlink\Common; use Shlinkio\Shlink\Core; use Shlinkio\Shlink\Rest; -use Zend\Expressive\ConfigManager; +use Zend\ConfigAggregator; /** * Configuration files are loaded in a specific order. First ``global.php``, then ``*.global.php``. @@ -15,11 +15,11 @@ use Zend\Expressive\ConfigManager; * Obviously, if you use closures in your config you can't cache it. */ -return (new ConfigManager\ConfigManager([ +return (new ConfigAggregator\ConfigAggregator([ ExpressiveErrorHandler\ConfigProvider::class, Common\ConfigProvider::class, Core\ConfigProvider::class, CLI\ConfigProvider::class, Rest\ConfigProvider::class, - new ConfigManager\ZendConfigProvider('config/{autoload/{{,*.}global,{,*.}local},params/generated_config}.php'), + new ConfigAggregator\ZendConfigProvider('config/{autoload/{{,*.}global,{,*.}local},params/generated_config}.php'), ], 'data/cache/app_config.php'))->getMergedConfig(); diff --git a/module/CLI/test/Command/Api/DisableKeyCommandTest.php b/module/CLI/test/Command/Api/DisableKeyCommandTest.php index 68d5f8c2..c265b3dd 100644 --- a/module/CLI/test/Command/Api/DisableKeyCommandTest.php +++ b/module/CLI/test/Command/Api/DisableKeyCommandTest.php @@ -1,7 +1,7 @@