From 3c9b0dbecc2ee543241a17554d11d5f462cef17c Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Thu, 27 May 2021 13:49:38 +0200 Subject: [PATCH] [TASK] Update PHPunit to v9 PHPunit v9 allows to use further improvements to our testing API, and also offers extended support until at least Feb 2022. PHPunit v9 requires PHP 7.3+ which isn't a problem for us per-se. In addition, composer does not complain about an abandoned package anymore if we upgrade to PHPunit 9. In order to achieve this, we need to explicitly require "codeception/phpunit-wrapper:^9.0" which we can then remove later-on again. Used composer commands: > composer req --dev "phpunit/phpunit:^9.5" "phpspec/prophecy-phpunit" "codeception/phpunit-wrapper:^9.0" -W > composer req --dev "phpunit/phpunit:^9.5" "phpspec/prophecy-phpunit" -d typo3/sysext/core --no-update > composer remove --dev codeception/phpunit-wrapper Used rector to migrate all Unit tests to prevent warnings.. Resolves: #94706 Releases: master Change-Id: I68d9df07421149f4ad40964afc512f0f995b295b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69297 Tested-by: core-ci <typo3@b13.com> Tested-by: Mathias Brodala <mbrodala@pagemachine.de> Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Benni Mack <benni@typo3.org> --- composer.json | 3 +- composer.lock | 850 ++++++++++++------ .../Middleware/AdminPanelInitiatorTest.php | 1 + .../Tests/Unit/Modules/PreviewModuleTest.php | 1 + .../Unit/Service/ConfigurationServiceTest.php | 1 + .../Tests/Unit/Service/ModuleLoaderTest.php | 2 +- .../Tests/Unit/Utility/StateUtilityTest.php | 2 +- .../Authentication/PasswordResetTest.php | 1 + .../ConditionMatcherTest.php | 1 + .../FormInlineAjaxControllerTest.php | 4 +- .../MfaConfigurationControllerTest.php | 12 +- .../Controller/MfaControllerTest.php | 7 +- .../ResetPasswordControllerTest.php | 3 +- .../Functional/Form/MfaInfoElementTest.php | 49 +- .../Functional/View/PageLayoutViewTest.php | 1 + .../BackendUserConfigurationTest.php | 1 + .../TranslationConfigurationProviderTest.php | 1 + .../Controller/EditDocumentControllerTest.php | 1 + .../Controller/File/FileControllerTest.php | 1 + .../FormInlineAjaxControllerTest.php | 1 + .../FormSelectTreeAjaxControllerTest.php | 1 + .../Unit/Controller/LoginControllerTest.php | 1 + .../Wizard/SuggestWizardControllerTest.php | 1 + .../Container/ListOfFieldsContainerTest.php | 1 + .../PaletteAndSingleContainerTest.php | 1 + .../Form/Element/InputDateTimeElementTest.php | 1 + .../Form/Element/InputHiddenElementTest.php | 1 + .../Form/FieldControl/ElementBrowserTest.php | 2 +- .../Tests/Unit/Form/FormDataCompilerTest.php | 1 + .../FormDataGroup/FlexFormSegmentTest.php | 1 + .../Unit/Form/FormDataGroup/OnTheFlyTest.php | 1 + .../FormDataGroup/OrderedProviderListTest.php | 1 + .../SiteConfigurationDataGroupTest.php | 1 + .../FormDataGroup/TcaDatabaseRecordTest.php | 1 + .../TcaInputPlaceholderRecordTest.php | 1 + .../TcaSelectTreeAjaxFieldDataTest.php | 1 + .../DatabaseLanguageRowsTest.php | 1 + .../DatabaseSystemLanguageRowsTest.php | 1 + .../DatabaseUserPermissionCheckTest.php | 1 + .../EvaluateDisplayConditionsTest.php | 1 + .../SiteDatabaseEditRowTest.php | 1 + .../FormDataProvider/SiteResolvingTest.php | 1 + .../FormDataProvider/TcaCheckboxItemsTest.php | 1 + ...TcaColumnsProcessFieldDescriptionsTest.php | 1 + .../TcaColumnsProcessFieldLabelsTest.php | 1 + .../FormDataProvider/TcaFlexPrepareTest.php | 1 + .../FormDataProvider/TcaFlexProcessTest.php | 1 + .../Form/FormDataProvider/TcaGroupTest.php | 1 + .../TcaInlineExpandCollapseStateTest.php | 1 + .../Form/FormDataProvider/TcaInlineTest.php | 1 + .../TcaInputPlaceholdersTest.php | 1 + .../Form/FormDataProvider/TcaLanguageTest.php | 1 + .../FormDataProvider/TcaRadioItemsTest.php | 1 + .../FormDataProvider/TcaRecordTitleTest.php | 1 + .../FormDataProvider/TcaSelectItemsTest.php | 1 + .../TcaSelectTreeItemsTest.php | 1 + .../Form/FormDataProvider/TcaTextTest.php | 1 + .../FormDataProvider/UserTsConfigTest.php | 1 + .../Unit/Form/InlineStackProcessorTest.php | 1 + .../Form/NodeExpansion/FieldControlTest.php | 1 + .../Tests/Unit/Form/NodeFactoryTest.php | 1 + .../Tests/Unit/Http/RouteDispatcherTest.php | 1 + .../Unit/Middleware/SiteResolverTest.php | 2 +- .../Security/EmailLoginNotificationTest.php | 1 + .../Tests/Unit/Utility/BackendUtilityTest.php | 1 + .../View/BackendLayout/BackendLayoutTest.php | 1 + .../FormDataProvider/TcaFlexPrepareTest.php | 1 + .../ViewHelpers/MfaStatusViewHelperTest.php | 1 + .../Backend/FormEngine/InlineFalCest.php | 2 +- .../Backend/Page/AddPageInPageModuleCest.php | 2 +- .../AbstractUserAuthenticationTest.php | 1 + .../AuthenticationServiceTest.php | 1 + .../BackendUserAuthenticationTest.php | 1 + .../Authentication/Mfa/Provider/TotpTest.php | 4 +- .../Unit/Cache/Backend/FileBackendTest.php | 9 +- .../Backend/Typo3DatabaseBackendTest.php | 1 + .../Tests/Unit/Cache/CacheManagerTest.php | 1 + .../Unit/Command/SendEmailCommandTest.php | 1 + .../ExtensionConfigurationTest.php | 1 + .../FlexForm/FlexFormToolsTest.php | 1 + .../Loader/PageTsConfigLoaderTest.php | 1 + .../Loader/YamlFileLoaderTest.php | 27 +- .../Parser/PageTsConfigParserTest.php | 2 +- .../Configuration/SiteConfigurationTest.php | 1 + .../AbstractConditionMatcherTest.php | 1 + .../Unit/Console/CommandRegistryTest.php | 1 + .../PasswordHashFactoryTest.php | 1 + .../Unit/DataHandling/DataHandlerTest.php | 2 +- .../Tests/Unit/Database/ConnectionTest.php | 1 + .../Platform/PlatformInformationTest.php | 1 + .../Expression/ExpressionBuilderTest.php | 1 + .../Unit/Database/Query/QueryBuilderTest.php | 1 + .../Unit/Database/Query/QueryHelperTest.php | 1 + .../AbstractRestrictionContainerTest.php | 1 + .../AbstractRestrictionTestCase.php | 1 + .../LimitToTablesRestrictionContainerTest.php | 1 + .../Schema/ConnectionMigratorTest.php | 1 + .../SchemaColumnDefinitionListenerTest.php | 1 + .../Schema/Parser/TableBuilderTest.php | 1 + .../Unit/Database/Schema/SqlReaderTest.php | 1 + .../Database/Schema/Types/EnumTypeTest.php | 1 + .../Database/Schema/Types/SetTypeTest.php | 1 + .../Unit/Database/SoftReferenceIndexTest.php | 1 + .../FailsafeContainerTest.php | 1 + .../ServiceProviderCompilationPassTest.php | 1 + .../ServiceProviderRegistryTest.php | 1 + .../Error/ProductionExceptionHandlerTest.php | 1 + .../EventDispatcher/EventDispatcherTest.php | 1 + .../EventDispatcher/ListenerProviderTest.php | 1 + .../Unit/ExpressionLanguage/ResolverTest.php | 1 + .../AbstractFormProtectionTest.php | 2 +- .../Hooks/TcaItemsProcessorFunctionsTest.php | 1 + .../core/Tests/Unit/Http/ClientTest.php | 1 + .../Unit/Http/MiddlewareDispatcherTest.php | 1 + .../Unit/Http/MiddlewareStackResolverTest.php | 1 + .../Http/Security/ReferrerEnforcerTest.php | 3 +- .../Unit/Http/UploadedFileFactoryTest.php | 1 + .../Tests/Unit/Imaging/IconFactoryTest.php | 1 + .../FontawesomeIconProviderTest.php | 1 + .../Tests/Unit/Imaging/IconRegistryTest.php | 1 + .../core/Tests/Unit/Imaging/IconTest.php | 1 + .../Localization/LocalizationFactoryTest.php | 1 + .../Localization/Parser/XliffParserTest.php | 1 + .../TcaSystemLanguageCollectorTest.php | 1 + .../core/Tests/Unit/Mail/MailerTest.php | 1 + .../Tests/Unit/Mail/TransportFactoryTest.php | 1 + .../Package/AbstractServiceProviderTest.php | 1 + .../core/Tests/Unit/Page/PageRendererTest.php | 1 + .../Unit/Preparations/TcaPreparationTest.php | 1 + .../Unit/Resource/Driver/LocalDriverTest.php | 4 +- .../Unit/Resource/MetaDataAspectTest.php | 1 + .../Processing/ProcessorRegistryTest.php | 1 + .../Repository/AbstractRepositoryTest.php | 1 + .../ResourceCompressorIntegrationTest.php | 2 +- .../Unit/Resource/ResourceStorageTest.php | 1 + .../Unit/Resource/StorageRepositoryTest.php | 1 + .../Utility/FileExtensionFilterTest.php | 1 + .../Unit/Routing/Aspect/AspectFactoryTest.php | 1 + .../Tests/Unit/Routing/PageRouterTest.php | 1 + .../MarkerBasedTemplateServiceTest.php | 1 + .../Tests/Unit/Session/SessionManagerTest.php | 1 + .../Unit/Session/UserSessionManagerTest.php | 1 + .../core/Tests/Unit/Site/Entity/SiteTest.php | 1 + .../DatabaseTreeDataProviderTest.php | 1 + .../TreeDataProviderFactoryTest.php | 1 + .../Tests/Unit/Type/File/ImageInfoTest.php | 2 +- .../Parser/TypoScriptParserTest.php | 1 + .../Unit/TypoScript/TemplateServiceTest.php | 1 + .../ExtensionManagementUtilityTest.php | 1 + .../Utility/File/ExtendedFileUtilityTest.php | 1 + .../Tests/Unit/Utility/GeneralUtilityTest.php | 3 +- .../Unit/Utility/RootlineUtilityTest.php | 1 + typo3/sysext/core/composer.json | 2 + .../DashboardWidgetPassTest.php | 1 + .../Tests/Unit/WidgetRegistryTest.php | 1 + .../Mvc/Controller/ActionControllerTest.php | 1 + .../Unit/Persistence/Generic/BackendTest.php | 1 + .../Generic/Mapper/DataMapperTest.php | 1 + .../Generic/PersistenceManagerTest.php | 1 + .../Persistence/Generic/QueryFactoryTest.php | 1 + .../Generic/Storage/Typo3DbBackendTest.php | 1 + .../Storage/Typo3DbQueryParserTest.php | 1 + .../Generic/Typo3QuerySettingsTest.php | 1 + .../Unit/Reflection/ReflectionServiceTest.php | 1 + .../Unit/Service/ExtensionServiceTest.php | 1 + .../Unit/Utility/DebuggerUtilityTest.php | 2 +- .../Unit/Utility/LocalizationUtilityTest.php | 1 + .../Unit/Controller/ActionControllerTest.php | 1 + .../Tests/Unit/Report/ExtensionStatusTest.php | 1 + .../ExtensionManagementServiceTest.php | 1 + .../Unit/Utility/DependencyUtilityTest.php | 1 + .../Tests/Unit/Utility/InstallUtilityTest.php | 1 + .../Tests/Unit/Utility/ListUtilityTest.php | 1 + .../RecoveryConfigurationTest.php | 1 + .../Unit/Redirect/RedirectHandlerTest.php | 1 + .../Unit/Service/RecoveryServiceTest.php | 1 + .../ViewHelper/ViewHelperResolverTest.php | 1 + .../Controller/FormFrontendControllerTest.php | 1 + .../Controller/FormManagerControllerTest.php | 1 + .../ConfigurationServiceTest.php | 1 + .../Domain/Factory/ArrayFormFactoryTest.php | 2 +- .../Domain/Finishers/AbstractFinisherTest.php | 1 + .../Domain/Finishers/ClosureFinisherTest.php | 2 +- .../Domain/Finishers/RedirectFinisherTest.php | 1 + .../Finishers/SaveToDatabaseFinisherTest.php | 2 +- .../Unit/Domain/Runtime/FormRuntimeTest.php | 1 + .../Hooks/DataStructureIdentifierHookTest.php | 1 + .../Tests/Unit/Mvc/ProcessingRuleTest.php | 1 + .../FormDefinitionArrayConverterTest.php | 1 + .../Unit/Service/TranslationServiceTest.php | 1 + .../FrontendUserAuthenticationTest.php | 1 + .../ContentObject/CaseContentObjectTest.php | 1 + .../ContentObjectRendererTest.php | 1 + .../ContentObject/FilesContentObjectTest.php | 2 +- .../FluidTemplateContentObjectTest.php | 1 + .../ContentObject/ImageContentObjectTest.php | 1 + .../Menu/AbstractMenuContentObjectTest.php | 1 + .../Unit/Controller/ErrorControllerTest.php | 1 + .../TypoScriptFrontendControllerTest.php | 1 + .../DataProcessing/FlexFormProcessorTest.php | 1 + .../Unit/DataProcessing/SiteProcessorTest.php | 2 +- .../Tests/Unit/Http/RequestHandlerTest.php | 1 + .../Middleware/PageArgumentValidatorTest.php | 1 + .../Unit/Middleware/SiteResolverTest.php | 1 + .../Middleware/StaticRouteResolverTest.php | 1 + .../Tests/Unit/Plugin/AbstractPluginTest.php | 1 + .../Typolink/AbstractTypolinkBuilderTest.php | 1 + .../DatabaseRecordLinkBuilderTest.php | 2 +- .../Unit/Controller/UpgradeControllerTest.php | 1 + .../Unit/Service/CoreVersionServiceTest.php | 1 + .../SilentConfigurationUpgradeServiceTest.php | 1 + .../Unit/Service/Typo3tempFileServiceTest.php | 1 + .../UpgradeAnalysis/DocumentationFileTest.php | 1 + .../Unit/Linktype/ExternalLinktypeTest.php | 1 + .../Unit/Service/OpenDocumentServiceTest.php | 1 + .../Tests/Unit/Browser/FileBrowserTest.php | 1 + .../RecordList/DatabaseRecordListTest.php | 1 + .../ValuePickerItemDataProviderTest.php | 1 + .../Unit/Service/RedirectServiceTest.php | 1 + .../Unit/Report/ServicesListReportTest.php | 1 + .../Unit/HrefLang/HrefLangGeneratorTest.php | 1 + .../PagesXmlSitemapDataProviderTest.php | 1 + .../Controller/Remote/RemoteServerTest.php | 1 + 223 files changed, 871 insertions(+), 336 deletions(-) diff --git a/composer.json b/composer.json index 6af8757b2076..73908243260a 100644 --- a/composer.json +++ b/composer.json @@ -97,8 +97,9 @@ "friendsoftypo3/phpstan-typo3": "^0.8.1", "php-webdriver/webdriver": "^1.9.0", "phpspec/prophecy": "^1.12.2", + "phpspec/prophecy-phpunit": "^2.0", "phpstan/phpstan": "^0.12.64", - "phpunit/phpunit": "^8.5.13", + "phpunit/phpunit": "^9.5", "typo3/cms-styleguide": "~11.4.0", "typo3/testing-framework": "^6.8.4" }, diff --git a/composer.lock b/composer.lock index ff159a87f6f0..d0ee79cabecf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ee8074721f21c25365420293db16b2ff", + "content-hash": "caca8f49819e13753fd78bce1f846cff", "packages": [ { "name": "bacon/bacon-qr-code", @@ -1094,16 +1094,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.10.4", + "version": "v4.12.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e" + "reference": "6608f01670c3cc5079e18c1dab1104e002579143" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c6d052fc58cb876152f89f532b95a8d7907e7f0e", - "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143", + "reference": "6608f01670c3cc5079e18c1dab1104e002579143", "shasum": "" }, "require": { @@ -1144,9 +1144,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.4" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0" }, - "time": "2020-12-20T10:01:03+00:00" + "time": "2021-07-21T10:44:31+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -4993,30 +4993,35 @@ }, { "name": "webmozart/assert", - "version": "1.9.1", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0 || ^8.0", + "php": "^7.2 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<3.9.1" + "vimeo/psalm": "<4.6.1 || 4.6.2" }, "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^7.5.13" + "phpunit/phpunit": "^8.5.13" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, "autoload": { "psr-4": { "Webmozart\\Assert\\": "src/" @@ -5040,9 +5045,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.9.1" + "source": "https://github.com/webmozarts/assert/tree/1.10.0" }, - "time": "2020-07-08T17:02:28+00:00" + "time": "2021-03-09T10:59:23+00:00" } ], "packages-dev": [ @@ -5425,33 +5430,31 @@ }, { "name": "codeception/phpunit-wrapper", - "version": "8.1.1", + "version": "9.0.6", "source": { "type": "git", "url": "https://github.com/Codeception/phpunit-wrapper.git", - "reference": "f1370a15e5fe60e7347b1c60642479b923a7ceef" + "reference": "b0c06abb3181eedca690170f7ed0fd26a70bfacc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/f1370a15e5fe60e7347b1c60642479b923a7ceef", - "reference": "f1370a15e5fe60e7347b1c60642479b923a7ceef", + "url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/b0c06abb3181eedca690170f7ed0fd26a70bfacc", + "reference": "b0c06abb3181eedca690170f7ed0fd26a70bfacc", "shasum": "" }, "require": { "php": ">=7.2", - "phpunit/php-code-coverage": "^7.0", - "phpunit/phpunit": "^8.0", - "sebastian/comparator": "^3.0", - "sebastian/diff": "^3.0" + "phpunit/phpunit": "^9.0" }, "require-dev": { "codeception/specify": "*", + "consolidation/robo": "^3.0.0-alpha3", "vlucas/phpdotenv": "^3.0" }, "type": "library", "autoload": { "psr-4": { - "Codeception\\PHPUnit\\": "src\\" + "Codeception\\PHPUnit\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -5462,14 +5465,17 @@ { "name": "Davert", "email": "davert.php@resend.cc" + }, + { + "name": "Naktibalda" } ], "description": "PHPUnit classes used by Codeception", "support": { "issues": "https://github.com/Codeception/phpunit-wrapper/issues", - "source": "https://github.com/Codeception/phpunit-wrapper/tree/8.0" + "source": "https://github.com/Codeception/phpunit-wrapper/tree/9.0.6" }, - "time": "2019-12-21T16:08:14+00:00" + "time": "2020-12-28T13:59:47+00:00" }, { "name": "codeception/stub", @@ -5985,16 +5991,16 @@ }, { "name": "phar-io/manifest", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { @@ -6039,22 +6045,22 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/master" + "source": "https://github.com/phar-io/manifest/tree/2.0.3" }, - "time": "2020-06-27T14:33:11+00:00" + "time": "2021-07-20T11:28:43+00:00" }, { "name": "phar-io/version", - "version": "3.0.4", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "e4782611070e50613683d2b9a57730e9a3ba5451" + "reference": "bae7c545bef187884426f042434e561ab1ddb182" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/e4782611070e50613683d2b9a57730e9a3ba5451", - "reference": "e4782611070e50613683d2b9a57730e9a3ba5451", + "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182", + "reference": "bae7c545bef187884426f042434e561ab1ddb182", "shasum": "" }, "require": { @@ -6090,9 +6096,9 @@ "description": "Library for handling version information and constraints", "support": { "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.0.4" + "source": "https://github.com/phar-io/version/tree/3.1.0" }, - "time": "2020-12-13T23:18:30+00:00" + "time": "2021-02-23T14:00:09+00:00" }, { "name": "php-cs-fixer/diff", @@ -6222,16 +6228,16 @@ }, { "name": "phpspec/prophecy", - "version": "1.12.2", + "version": "1.13.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "245710e971a030f42e08f4912863805570f23d39" + "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/245710e971a030f42e08f4912863805570f23d39", - "reference": "245710e971a030f42e08f4912863805570f23d39", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", + "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", "shasum": "" }, "require": { @@ -6283,9 +6289,61 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.12.2" + "source": "https://github.com/phpspec/prophecy/tree/1.13.0" }, - "time": "2020-12-19T10:15:11+00:00" + "time": "2021-03-17T13:42:18+00:00" + }, + { + "name": "phpspec/prophecy-phpunit", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy-phpunit.git", + "reference": "2d7a9df55f257d2cba9b1d0c0963a54960657177" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy-phpunit/zipball/2d7a9df55f257d2cba9b1d0c0963a54960657177", + "reference": "2d7a9df55f257d2cba9b1d0c0963a54960657177", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8", + "phpspec/prophecy": "^1.3", + "phpunit/phpunit": "^9.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\PhpUnit\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christophe Coevoet", + "email": "stof@notk.org" + } + ], + "description": "Integrating the Prophecy mocking library in PHPUnit test cases", + "homepage": "http://phpspec.net", + "keywords": [ + "phpunit", + "prophecy" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy-phpunit/issues", + "source": "https://github.com/phpspec/prophecy-phpunit/tree/v2.0.1" + }, + "time": "2020-07-09T08:33:42+00:00" }, { "name": "phpstan/phpstan", @@ -6349,40 +6407,44 @@ }, { "name": "phpunit/php-code-coverage", - "version": "7.0.14", + "version": "9.2.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "bb7c9a210c72e4709cdde67f8b7362f672f2225c" + "reference": "f6293e1b30a2354e8428e004689671b83871edde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/bb7c9a210c72e4709cdde67f8b7362f672f2225c", - "reference": "bb7c9a210c72e4709cdde67f8b7362f672f2225c", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", + "reference": "f6293e1b30a2354e8428e004689671b83871edde", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-xmlwriter": "*", - "php": ">=7.2", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.1.1 || ^4.0", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^4.2.2", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1.3" + "nikic/php-parser": "^4.10.2", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^8.2.2" + "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-xdebug": "^2.7.2" + "ext-pcov": "*", + "ext-xdebug": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "9.2-dev" } }, "autoload": { @@ -6410,7 +6472,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.14" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6" }, "funding": [ { @@ -6418,32 +6480,32 @@ "type": "github" } ], - "time": "2020-12-02T13:39:03+00:00" + "time": "2021-03-28T07:26:59+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "2.0.3", + "version": "3.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357" + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/4b49fb70f067272b659ef0174ff9ca40fdaa6357", - "reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -6470,7 +6532,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.3" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5" }, "funding": [ { @@ -6478,26 +6540,38 @@ "type": "github" } ], - "time": "2020-11-30T08:25:21+00:00" + "time": "2020-09-28T05:57:25+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "phpunit/php-invoker", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -6514,41 +6588,47 @@ "role": "lead" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", "keywords": [ - "template" + "process" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" }, - "time": "2015-06-21T13:50:34+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" }, { - "name": "phpunit/php-timer", - "version": "2.1.3", + "name": "phpunit/php-text-template", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", - "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -6567,14 +6647,14 @@ "role": "lead" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "timer" + "template" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3" + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" }, "funding": [ { @@ -6582,33 +6662,32 @@ "type": "github" } ], - "time": "2020-11-30T08:20:02+00:00" + "time": "2020-10-26T05:33:50+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "4.0.4", + "name": "phpunit/php-timer", + "version": "5.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", - "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": "^7.3 || ^8.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -6623,17 +6702,18 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "tokenizer" + "timer" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" }, "funding": [ { @@ -6641,21 +6721,20 @@ "type": "github" } ], - "abandoned": true, - "time": "2020-08-04T08:28:15+00:00" + "time": "2020-10-26T13:16:10+00:00" }, { "name": "phpunit/phpunit", - "version": "8.5.13", + "version": "9.5.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "8e86be391a58104ef86037ba8a846524528d784e" + "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/8e86be391a58104ef86037ba8a846524528d784e", - "reference": "8e86be391a58104ef86037ba8a846524528d784e", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/191768ccd5c85513b4068bdbe99bb6390c7d54fb", + "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb", "shasum": "" }, "require": { @@ -6666,32 +6745,35 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.0", - "phar-io/manifest": "^2.0.1", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", - "php": ">=7.2", - "phpspec/prophecy": "^1.10.3", - "phpunit/php-code-coverage": "^7.0.12", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.2", - "sebastian/comparator": "^3.0.2", - "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.3", - "sebastian/exporter": "^3.1.2", - "sebastian/global-state": "^3.0.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^2.0.1", - "sebastian/type": "^1.1.3", - "sebastian/version": "^2.0.1" + "php": ">=7.3", + "phpspec/prophecy": "^1.12.1", + "phpunit/php-code-coverage": "^9.2.3", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.5", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.3", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^2.3.4", + "sebastian/version": "^3.0.2" }, "require-dev": { - "ext-pdo": "*" + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" }, "suggest": { "ext-soap": "*", - "ext-xdebug": "*", - "phpunit/php-invoker": "^2.0.0" + "ext-xdebug": "*" }, "bin": [ "phpunit" @@ -6699,12 +6781,15 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "8.5-dev" + "dev-master": "9.5-dev" } }, "autoload": { "classmap": [ "src/" + ], + "files": [ + "src/Framework/Assert/Functions.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -6727,7 +6812,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.13" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.8" }, "funding": [ { @@ -6739,32 +6824,144 @@ "type": "github" } ], - "time": "2020-12-01T04:53:52+00:00" + "time": "2021-07-31T15:17:34+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -6786,7 +6983,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" }, "funding": [ { @@ -6794,34 +6991,34 @@ "type": "github" } ], - "time": "2020-11-30T08:15:22+00:00" + "time": "2020-09-28T05:30:19+00:00" }, { "name": "sebastian/comparator", - "version": "3.0.3", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1071dfcef776a57013124ff35e1fc41ccd294758" + "reference": "55f4261989e546dc112258c7a75935a81a7ce382" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1071dfcef776a57013124ff35e1fc41ccd294758", - "reference": "1071dfcef776a57013124ff35e1fc41ccd294758", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382", "shasum": "" }, "require": { - "php": ">=7.1", - "sebastian/diff": "^3.0", - "sebastian/exporter": "^3.1" + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -6860,7 +7057,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.3" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" }, "funding": [ { @@ -6868,33 +7065,90 @@ "type": "github" } ], - "time": "2020-11-30T08:04:30+00:00" + "time": "2020-10-26T15:49:45+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" }, { "name": "sebastian/diff", - "version": "3.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", - "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -6926,7 +7180,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/3.0.3" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" }, "funding": [ { @@ -6934,27 +7188,27 @@ "type": "github" } ], - "time": "2020-11-30T07:59:04+00:00" + "time": "2020-10-26T13:10:38+00:00" }, { "name": "sebastian/environment", - "version": "4.2.4", + "version": "5.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + "reference": "388b6ced16caa751030f6a69e588299fa09200ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", - "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", + "reference": "388b6ced16caa751030f6a69e588299fa09200ac", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-posix": "*" @@ -6962,7 +7216,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -6989,7 +7243,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" }, "funding": [ { @@ -6997,34 +7251,34 @@ "type": "github" } ], - "time": "2020-11-30T07:53:42+00:00" + "time": "2020-09-28T05:52:38+00:00" }, { "name": "sebastian/exporter", - "version": "3.1.3", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e" + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/6b853149eab67d4da22291d36f5b0631c0fd856e", - "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", "shasum": "" }, "require": { - "php": ">=7.0", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -7066,7 +7320,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" }, "funding": [ { @@ -7074,30 +7328,30 @@ "type": "github" } ], - "time": "2020-11-30T07:47:53+00:00" + "time": "2020-09-28T05:24:23+00:00" }, { "name": "sebastian/global-state", - "version": "3.0.1", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "474fb9edb7ab891665d3bfc6317f42a0a150454b" + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/474fb9edb7ab891665d3bfc6317f42a0a150454b", - "reference": "474fb9edb7ab891665d3bfc6317f42a0a150454b", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49", + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49", "shasum": "" }, "require": { - "php": ">=7.2", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-uopz": "*" @@ -7105,7 +7359,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -7130,7 +7384,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3" }, "funding": [ { @@ -7138,34 +7392,91 @@ "type": "github" } ], - "time": "2020-11-30T07:43:24+00:00" + "time": "2021-06-11T13:31:12+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" }, { "name": "sebastian/object-enumerator", - "version": "3.0.4", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": ">=7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -7187,7 +7498,7 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" }, "funding": [ { @@ -7195,32 +7506,32 @@ "type": "github" } ], - "time": "2020-11-30T07:40:27+00:00" + "time": "2020-10-26T13:12:34+00:00" }, { "name": "sebastian/object-reflector", - "version": "1.1.2", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -7242,7 +7553,7 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" }, "funding": [ { @@ -7250,32 +7561,32 @@ "type": "github" } ], - "time": "2020-11-30T07:37:18+00:00" + "time": "2020-10-26T13:14:26+00:00" }, { "name": "sebastian/recursion-context", - "version": "3.0.1", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -7305,7 +7616,7 @@ "homepage": "http://www.github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" }, "funding": [ { @@ -7313,29 +7624,32 @@ "type": "github" } ], - "time": "2020-11-30T07:34:24+00:00" + "time": "2020-10-26T13:17:30+00:00" }, { "name": "sebastian/resource-operations", - "version": "2.0.2", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", - "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -7357,7 +7671,7 @@ "homepage": "https://www.github.com/sebastianbergmann/resource-operations", "support": { "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" }, "funding": [ { @@ -7365,32 +7679,32 @@ "type": "github" } ], - "time": "2020-11-30T07:30:19+00:00" + "time": "2020-09-28T06:45:17+00:00" }, { "name": "sebastian/type", - "version": "1.1.4", + "version": "2.3.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", - "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", "shasum": "" }, "require": { - "php": ">=7.2" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.2" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.3-dev" } }, "autoload": { @@ -7413,7 +7727,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/1.1.4" + "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" }, "funding": [ { @@ -7421,29 +7735,29 @@ "type": "github" } ], - "time": "2020-11-30T07:25:11+00:00" + "time": "2021-06-15T12:49:02+00:00" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -7466,9 +7780,15 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/master" + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" }, - "time": "2016-10-03T07:35:21+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" }, { "name": "symfony/css-selector", @@ -7734,16 +8054,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "75a63c33a8577608444246075ea0af0d052e452a" + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", - "reference": "75a63c33a8577608444246075ea0af0d052e452a", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "shasum": "" }, "require": { @@ -7772,7 +8092,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/master" + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" }, "funding": [ { @@ -7780,7 +8100,7 @@ "type": "github" } ], - "time": "2020-07-12T23:59:07+00:00" + "time": "2021-07-28T10:34:58+00:00" }, { "name": "typo3/cms-styleguide", @@ -7937,5 +8257,5 @@ "platform-overrides": { "php": "7.4.1" }, - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.0.0" } diff --git a/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php b/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php index 4828740cca2b..e98fc7b25cd4 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Middleware/AdminPanelInitiatorTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AdminPanelInitiatorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php b/typo3/sysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php index 0e32d16f3c6a..2e6b9160866a 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Modules/PreviewModuleTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PreviewModuleTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function simulateDateDataProvider(): array { return [ diff --git a/typo3/sysext/adminpanel/Tests/Unit/Service/ConfigurationServiceTest.php b/typo3/sysext/adminpanel/Tests/Unit/Service/ConfigurationServiceTest.php index 2a6bda7a2cf5..ee22484fa9e2 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Service/ConfigurationServiceTest.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Service/ConfigurationServiceTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ConfigurationServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var BackendUserAuthentication|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php b/typo3/sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php index 2f8c8e1bb045..8e0c5dde48ed 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Service/ModuleLoaderTest.php @@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ModuleLoaderTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php b/typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php index 31cd58533942..70dbb681e3cf 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Utility/StateUtilityTest.php @@ -24,7 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class StateUtilityTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Functional/Authentication/PasswordResetTest.php b/typo3/sysext/backend/Tests/Functional/Authentication/PasswordResetTest.php index d82841cec116..53d99f979b8c 100644 --- a/typo3/sysext/backend/Tests/Functional/Authentication/PasswordResetTest.php +++ b/typo3/sysext/backend/Tests/Functional/Authentication/PasswordResetTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class PasswordResetTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected LoggerInterface $logger; public function setUp(): void diff --git a/typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php b/typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php index 06c7a1cfd7ef..4a43e8845839 100644 --- a/typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php +++ b/typo3/sysext/backend/Tests/Functional/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; */ class ConditionMatcherTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Sets up this test case. */ diff --git a/typo3/sysext/backend/Tests/Functional/Controller/FormInlineAjaxControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/FormInlineAjaxControllerTest.php index 968535674a57..6efefdf3423c 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/FormInlineAjaxControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/FormInlineAjaxControllerTest.php @@ -142,7 +142,7 @@ class FormInlineAjaxControllerTest extends FunctionalTestCase $body = (string)$response->getBody(); $jsonArray = json_decode($body, true); - self::assertRegExp('/<option value="1"[^>]* selected="selected">Dansk<\/option>/', $jsonArray['data']); + self::assertMatchesRegularExpression('/<option value="1"[^>]* selected="selected">Dansk<\/option>/', $jsonArray['data']); } /** @@ -169,7 +169,7 @@ class FormInlineAjaxControllerTest extends FunctionalTestCase $body = (string)$response->getBody(); $jsonArray = json_decode($body, true); - self::assertNotRegExp('/<select[^>]* name="data\[tx_irretutorial_1ncsv_offer\]\[NEW[1-9]+\]\[sys_language_uid\]"[^>]*>/', $jsonArray['data']); + self::assertDoesNotMatchRegularExpression('/<select[^>]* name="data\[tx_irretutorial_1ncsv_offer\]\[NEW[1-9]+\]\[sys_language_uid\]"[^>]*>/', $jsonArray['data']); } /** diff --git a/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php index 3ed7569a7882..c484793dc512 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php @@ -126,7 +126,7 @@ class MfaConfigurationControllerTest extends FunctionalTestCase self::assertEquals(200, $response->getStatusCode()); $responseContent = $response->getBody()->getContents(); self::assertStringContainsString('Multi-factor authentication required', $responseContent); - self::assertRegExp('/<div.*class="card card-size-fixed-small border-success shadow".*id="totp-provider"/s', $responseContent); + self::assertMatchesRegularExpression('/<div.*class="card card-size-fixed-small border-success shadow".*id="totp-provider"/s', $responseContent); } /** @@ -142,7 +142,7 @@ class MfaConfigurationControllerTest extends FunctionalTestCase ); self::assertEquals(200, $response->getStatusCode()); - self::assertRegExp('/<span.*title="Default provider">/s', $response->getBody()->getContents()); + self::assertMatchesRegularExpression('/<span.*title="Default provider">/s', $response->getBody()->getContents()); } /** @@ -382,12 +382,12 @@ class MfaConfigurationControllerTest extends FunctionalTestCase $responseContent = $response->getBody()->getContents(); self::assertEquals(200, $response->getStatusCode()); - self::assertRegExp('/<a.*href="\/typo3\/mfa.*title="Close">/s', $responseContent); - self::assertRegExp('/<button.*name="save".*form="mfaConfigurationController">/s', $responseContent); - self::assertRegExp('/<form.*name="' . $action . '".*id="mfaConfigurationController">/s', $responseContent); + self::assertMatchesRegularExpression('/<a.*href="\/typo3\/mfa.*title="Close">/s', $responseContent); + self::assertMatchesRegularExpression('/<button.*name="save".*form="mfaConfigurationController">/s', $responseContent); + self::assertMatchesRegularExpression('/<form.*name="' . $action . '".*id="mfaConfigurationController">/s', $responseContent); // Ensure provider specific content is added as well - self::assertRegExp($providerContent, $responseContent); + self::assertMatchesRegularExpression($providerContent, $responseContent); } public function handleRequestAddsFormOnInteractionViewsTestTestDataProvider(): \Generator diff --git a/typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php index f586bd4451af..f2f50da3b1b5 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class MfaControllerTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected MfaController $subject; protected ServerRequest $request; @@ -117,10 +118,10 @@ class MfaControllerTest extends FunctionalTestCase // Auth view for provider is renderer self::assertStringContainsString('Time-based one-time password', $responseContent); - self::assertRegExp('/<form.*name="verify".*id="mfaController">/s', $responseContent); + self::assertMatchesRegularExpression('/<form.*name="verify".*id="mfaController">/s', $responseContent); // Ensure provider specific content is added as well - self::assertRegExp('/<input.*id="totp"/s', $responseContent); + self::assertMatchesRegularExpression('/<input.*id="totp"/s', $responseContent); } /** @@ -164,7 +165,7 @@ class MfaControllerTest extends FunctionalTestCase $responseContent = $response->getBody()->getContents(); self::assertStringContainsString('Alternative providers', $responseContent); - self::assertRegExp('/<a.*title="Use Recovery codes"/s', $responseContent); + self::assertMatchesRegularExpression('/<a.*title="Use Recovery codes"/s', $responseContent); } /** diff --git a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php index 2b57f9e8816d..4e84793beeaf 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php @@ -40,6 +40,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class ResetPasswordControllerTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected ResetPasswordController $subject; protected ServerRequestInterface $request; @@ -101,7 +102,7 @@ class ResetPasswordControllerTest extends FunctionalTestCase { $response = $this->subject->forgetPasswordFormAction($this->request)->getBody()->getContents(); self::assertStringContainsString('/*loginHighlightColor*/', $response); - self::assertRegExp('/\.btn-login { background-color: #abcdef; }.*\.card-login \.card-footer { border-color: #abcdef; }/s', $response); + self::assertMatchesRegularExpression('/\.btn-login { background-color: #abcdef; }.*\.card-login \.card-footer { border-color: #abcdef; }/s', $response); } /** diff --git a/typo3/sysext/backend/Tests/Functional/Form/MfaInfoElementTest.php b/typo3/sysext/backend/Tests/Functional/Form/MfaInfoElementTest.php index 20d373fedac5..b4e981592282 100644 --- a/typo3/sysext/backend/Tests/Functional/Form/MfaInfoElementTest.php +++ b/typo3/sysext/backend/Tests/Functional/Form/MfaInfoElementTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class MfaInfoElementTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); @@ -71,10 +72,10 @@ class MfaInfoElementTest extends FunctionalTestCase ]); // MFA is disabled - self::assertRegExp('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); - self::assertNotRegExp('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); // MFA can NOT be deactivated - self::assertRegExp('/<button.*class="t3js-deactivate-mfa-button btn btn-danger disabled".*disabled="disabled"/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="t3js-deactivate-mfa-button btn btn-danger disabled".*disabled="disabled"/s', $result['html']); // JavaScript is NOT added self::assertEmpty($result['requireJsModules']); } @@ -95,10 +96,10 @@ class MfaInfoElementTest extends FunctionalTestCase ]); // MFA is disabled - self::assertRegExp('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); - self::assertNotRegExp('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); // MFA can NOT be deactivated - self::assertRegExp('/<button.*class="t3js-deactivate-mfa-button btn btn-danger disabled".*disabled="disabled"/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="t3js-deactivate-mfa-button btn btn-danger disabled".*disabled="disabled"/s', $result['html']); // JavaScript is NOT added self::assertEmpty($result['requireJsModules']); } @@ -119,18 +120,18 @@ class MfaInfoElementTest extends FunctionalTestCase ]); // Mfa is enabled - self::assertNotRegExp('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); - self::assertRegExp('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); // Totp item exist - self::assertRegExp('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); + self::assertMatchesRegularExpression('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); // Recovery codes item does NOT exist self::assertStringNotContainsString('id="provider-recovery-codes"', $result['html']); // No item is locked - self::assertNotRegExp('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); // Item can be deactivated - self::assertRegExp('/<button.*class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"/s', $result['html']); // MFA can be deactivated - self::assertRegExp('/<button.*class="t3js-deactivate-mfa-button btn btn-danger "/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="t3js-deactivate-mfa-button btn btn-danger "/s', $result['html']); // JavaScript is added self::assertArrayHasKey('TYPO3/CMS/Backend/FormEngine/Element/MfaInfoElement', $result['requireJsModules'][0]); } @@ -151,18 +152,18 @@ class MfaInfoElementTest extends FunctionalTestCase ]); // Mfa is enabled - self::assertNotRegExp('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); - self::assertRegExp('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); // Totp item exists - self::assertRegExp('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); + self::assertMatchesRegularExpression('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); // Recovery codes item exists - self::assertRegExp('/<li.*class="list-group-item".*id="provider-recovery-codes"/s', $result['html']); + self::assertMatchesRegularExpression('/<li.*class="list-group-item".*id="provider-recovery-codes"/s', $result['html']); // Item is locked - self::assertRegExp('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); // Items can be deactivated - self::assertRegExp('/<button.*class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="btn btn-default btn-sm pull-right t3js-deactivate-provider-button"/s', $result['html']); // MFA can be deactivated - self::assertRegExp('/<button.*class="t3js-deactivate-mfa-button btn btn-danger "/s', $result['html']); + self::assertMatchesRegularExpression('/<button.*class="t3js-deactivate-mfa-button btn btn-danger "/s', $result['html']); // JavaScript is added self::assertArrayHasKey('TYPO3/CMS/Backend/FormEngine/Element/MfaInfoElement', $result['requireJsModules'][0]); } @@ -187,14 +188,14 @@ class MfaInfoElementTest extends FunctionalTestCase ]); // Mfa is enabled - self::assertNotRegExp('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); - self::assertRegExp('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); + self::assertDoesNotMatchRegularExpression('/<span.*class="label label-danger.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.disabled/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-success.*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.mfa.enabled/s', $result['html']); // Totp item exists - self::assertRegExp('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); + self::assertMatchesRegularExpression('/<li.*class="list-group-item".*id="provider-totp"/s', $result['html']); // Recovery codes item exists - self::assertRegExp('/<li.*class="list-group-item".*id="provider-recovery-codes"/s', $result['html']); + self::assertMatchesRegularExpression('/<li.*class="list-group-item".*id="provider-recovery-codes"/s', $result['html']); // Item (recovery codes) is locked - self::assertRegExp('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); + self::assertMatchesRegularExpression('/<span.*class="label label-danger".*>LLL:EXT:core\/Resources\/Private\/Language\/locallang_core.xlf:labels.locked/s', $result['html']); // Items deactivation button is not shown self::assertStringNotContainsString('t3js-deactivate-provider-button', $result['html']); // MFA deactivation button is not shown diff --git a/typo3/sysext/backend/Tests/Functional/View/PageLayoutViewTest.php b/typo3/sysext/backend/Tests/Functional/View/PageLayoutViewTest.php index abf00d20aea0..5a79d9c40129 100644 --- a/typo3/sysext/backend/Tests/Functional/View/PageLayoutViewTest.php +++ b/typo3/sysext/backend/Tests/Functional/View/PageLayoutViewTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class PageLayoutViewTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var PageLayoutView|AccessibleObjectInterface */ diff --git a/typo3/sysext/backend/Tests/Unit/Configuration/BackendUserConfigurationTest.php b/typo3/sysext/backend/Tests/Unit/Configuration/BackendUserConfigurationTest.php index 6225eb4904dc..17fb868115cc 100644 --- a/typo3/sysext/backend/Tests/Unit/Configuration/BackendUserConfigurationTest.php +++ b/typo3/sysext/backend/Tests/Unit/Configuration/BackendUserConfigurationTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendUserConfigurationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var BackendUserConfiguration */ diff --git a/typo3/sysext/backend/Tests/Unit/Configuration/TranslationConfigurationProviderTest.php b/typo3/sysext/backend/Tests/Unit/Configuration/TranslationConfigurationProviderTest.php index 2bdee6aeb702..9892c32e8ca3 100644 --- a/typo3/sysext/backend/Tests/Unit/Configuration/TranslationConfigurationProviderTest.php +++ b/typo3/sysext/backend/Tests/Unit/Configuration/TranslationConfigurationProviderTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TranslationConfigurationProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TranslationConfigurationProvider */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php index 1d48e9c72f31..2f3183c1c441 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class EditDocumentControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php index 69f936a1b332..bb747c52ba6e 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/File/FileControllerTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FileControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var File|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php index d6db630fe5fd..78107b304bd7 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/FormInlineAjaxControllerTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormInlineAjaxControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/FormSelectTreeAjaxControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/FormSelectTreeAjaxControllerTest.php index 126d9daf9f94..f8bb821dca06 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/FormSelectTreeAjaxControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/FormSelectTreeAjaxControllerTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormSelectTreeAjaxControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php index 060d402ae4a7..f895eb8edd98 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class LoginControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php index d79e411fe4d6..230b43c988cc 100644 --- a/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Controller/Wizard/SuggestWizardControllerTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SuggestWizardControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php b/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php index 02d6434d9c0b..2113920aa609 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ListOfFieldsContainerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php b/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php index f79f6560f119..148cf5454abf 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Container/PaletteAndSingleContainerTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PaletteAndSingleContainerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php index 53b6d05f26c4..669272a59b77 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputDateTimeElementTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class InputDateTimeElementTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var string Selected timezone backup */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php index 034b9ffed7eb..40d0bfaf7ad6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Element/InputHiddenElementTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class InputHiddenElementTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php b/typo3/sysext/backend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php index af500b368b60..900722e598d5 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FieldControl/ElementBrowserTest.php @@ -23,7 +23,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ElementBrowserTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php index 2e08e7bd65fd..6a391524ec4d 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormDataCompilerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var FormDataCompiler */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/FlexFormSegmentTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/FlexFormSegmentTest.php index 09bc8de1e7c6..c58747855903 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/FlexFormSegmentTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/FlexFormSegmentTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FlexFormSegmentTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var FlexFormSegment */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OnTheFlyTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OnTheFlyTest.php index 36406f3168fc..235f5064d6ac 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OnTheFlyTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OnTheFlyTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class OnTheFlyTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var OnTheFly */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OrderedProviderListTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OrderedProviderListTest.php index 64213428941e..195ba09de437 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OrderedProviderListTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/OrderedProviderListTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class OrderedProviderListTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/SiteConfigurationDataGroupTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/SiteConfigurationDataGroupTest.php index 55951b40a5f2..2bc419b6bb11 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/SiteConfigurationDataGroupTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/SiteConfigurationDataGroupTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SiteConfigurationDataGroupTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var SiteConfigurationDataGroup */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaDatabaseRecordTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaDatabaseRecordTest.php index f7deddb67e2a..850a41802b5e 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaDatabaseRecordTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaDatabaseRecordTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaDatabaseRecordTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TcaDatabaseRecord */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaInputPlaceholderRecordTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaInputPlaceholderRecordTest.php index 6e8716b0c9d4..cedbee7a149b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaInputPlaceholderRecordTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaInputPlaceholderRecordTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaInputPlaceholderRecordTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TcaInputPlaceholderRecord */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaSelectTreeAjaxFieldDataTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaSelectTreeAjaxFieldDataTest.php index d77a136c3462..871da3857257 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaSelectTreeAjaxFieldDataTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/TcaSelectTreeAjaxFieldDataTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaSelectTreeAjaxFieldDataTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TcaSelectTreeAjaxFieldData */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php index 4ebddd5b13d3..bf77887fdaa6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DatabaseLanguageRowsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var DatabaseLanguageRows|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php index f58e69eda97e..219cb6a9e210 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseSystemLanguageRowsTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DatabaseSystemLanguageRowsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php index 4c37985ca5da..871b328e928d 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DatabaseUserPermissionCheckTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var BackendUserAuthentication|ObjectProphecy */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php index 2a9316b7f7e9..b60f193e5ed1 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class EvaluateDisplayConditionsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteDatabaseEditRowTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteDatabaseEditRowTest.php index 3310c6777b3d..baa76ccc0df8 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteDatabaseEditRowTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteDatabaseEditRowTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SiteDatabaseEditRowTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function setUp(): void { $this->backupEnvironment = true; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php index 0b38670d1bf5..90e5953128f5 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/SiteResolvingTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SiteResolvingTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php index 6d2dbb14a6f0..5e6445806de7 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaCheckboxItemsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Tear down */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldDescriptionsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldDescriptionsTest.php index 50a61a84c0cf..d37a94d4d1d1 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldDescriptionsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldDescriptionsTest.php @@ -23,6 +23,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TcaColumnsProcessFieldDescriptionsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected TcaColumnsProcessFieldDescriptions $subject; protected function setUp(): void diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php index 003fff3f2bbe..e9d3017d3fed 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessFieldLabelsTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaColumnsProcessFieldLabelsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php index bc7d05ab69a3..1fda98754153 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaFlexPrepareTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php index 37bd59ef33bd..afe0ec626cad 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaFlexProcessTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var BackendUserAuthentication|ObjectProphecy */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php index c3e1726ff1a9..61ea08e39e91 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaGroupTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaGroupTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php index 6d6af97976eb..ace811f55f21 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineExpandCollapseStateTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaInlineExpandCollapseStateTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php index 1f77c5aa622b..13e72a91b035 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php @@ -25,6 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaInlineTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var BackendUserAuthentication|ObjectProphecy */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php index 7717ce9cdc2f..1d12ac42a084 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaInputPlaceholdersTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php index 68eb183158ae..2e456dacafcf 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaLanguageTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaLanguageTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Set up */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php index ec0957dff8f3..e2d15fb936f6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaRadioItemsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Tear down */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php index 6ef6044a046d..3944f02983c7 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRecordTitleTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaRecordTitleTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var string */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php index c685407a60a2..75ccd1f9109e 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php @@ -46,6 +46,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaSelectItemsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Set up */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php index 4a70268d44f7..3226310426f6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php @@ -42,6 +42,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaSelectTreeItemsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php index 45ec5ee1a240..73b55116e44b 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaTextTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/UserTsConfigTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/UserTsConfigTest.php index e33eb7ea3d67..ae1b84739189 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/UserTsConfigTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/UserTsConfigTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class UserTsConfigTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var UserTsConfig */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php index bed60b9bc0f3..09775c2dcefc 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/InlineStackProcessorTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class InlineStackProcessorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/NodeExpansion/FieldControlTest.php b/typo3/sysext/backend/Tests/Unit/Form/NodeExpansion/FieldControlTest.php index b9a99da81432..89b82c4f8aa6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/NodeExpansion/FieldControlTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/NodeExpansion/FieldControlTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FieldControlTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php b/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php index 4a074afd7d25..41f43c353caa 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/NodeFactoryTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class NodeFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Http/RouteDispatcherTest.php b/typo3/sysext/backend/Tests/Unit/Http/RouteDispatcherTest.php index 1851dca8c5f6..40191901cd11 100644 --- a/typo3/sysext/backend/Tests/Unit/Http/RouteDispatcherTest.php +++ b/typo3/sysext/backend/Tests/Unit/Http/RouteDispatcherTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RouteDispatcherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function tearDown(): void { FormProtectionFactory::purgeInstances(); diff --git a/typo3/sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php b/typo3/sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php index 971ae9142050..a50b50b0ef38 100644 --- a/typo3/sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php +++ b/typo3/sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php @@ -28,7 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SiteResolverTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Security/EmailLoginNotificationTest.php b/typo3/sysext/backend/Tests/Unit/Security/EmailLoginNotificationTest.php index b33510142332..757a7fd0a5e7 100644 --- a/typo3/sysext/backend/Tests/Unit/Security/EmailLoginNotificationTest.php +++ b/typo3/sysext/backend/Tests/Unit/Security/EmailLoginNotificationTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class EmailLoginNotificationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php index c12993a119ef..e8ca006556bb 100644 --- a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php +++ b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool */ diff --git a/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php b/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php index 4cb6bfee22bf..7207ac7ec2bf 100644 --- a/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php +++ b/typo3/sysext/backend/Tests/Unit/View/BackendLayout/BackendLayoutTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendLayoutTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php b/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php index 83bbca4baf58..29e5dffc5693 100644 --- a/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php +++ b/typo3/sysext/backend/Tests/UnitDeprecated/Form/FormDataProvider/TcaFlexPrepareTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaFlexPrepareTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TcaFlexPrepare */ diff --git a/typo3/sysext/beuser/Tests/Functional/ViewHelpers/MfaStatusViewHelperTest.php b/typo3/sysext/beuser/Tests/Functional/ViewHelpers/MfaStatusViewHelperTest.php index 89a1f63e893f..23a9c89c3197 100644 --- a/typo3/sysext/beuser/Tests/Functional/ViewHelpers/MfaStatusViewHelperTest.php +++ b/typo3/sysext/beuser/Tests/Functional/ViewHelpers/MfaStatusViewHelperTest.php @@ -25,6 +25,7 @@ use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase; class MfaStatusViewHelperTest extends FunctionalTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected StandaloneView $view; protected function setUp(): void diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/InlineFalCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/InlineFalCest.php index 78afc50b0c88..5eb82a95399e 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/InlineFalCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/FormEngine/InlineFalCest.php @@ -64,7 +64,7 @@ class InlineFalCest $modalDialog->canSeeDialog(); $I->switchToIFrame('.modal-iframe'); $modalTitle = $I->grabTextFrom('.card-title'); - $I->assertContains($filename, $modalTitle); + $I->assertStringContainsString($filename, $modalTitle); } /** diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php index 7bc564e12c6a..80e4a64e92ee 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php @@ -85,7 +85,7 @@ class AddPageInPageModuleCest ) { return $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::cssSelector($generalTab))->getAttribute('class'); }); - $I->assertContains('has-validation-error', $classString); + $I->assertStringContainsString('has-validation-error', $classString); // Add page $pageTitleFieldset = $editControllerDiv . ' > div:nth-of-type(1) > div > div.tab-pane:nth-child(1) > fieldset:nth-child(2)'; diff --git a/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php b/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php index fb8f35486d32..630df27afa86 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/AbstractUserAuthenticationTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractUserAuthenticationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php index 91c00e607125..3289664217c3 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/AuthenticationServiceTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AuthenticationServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php index fa8cc7c76d9b..3f65e95262ae 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php @@ -42,6 +42,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendUserAuthenticationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var array */ diff --git a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php index 8e8422cc01c2..8d0013813b1c 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php @@ -186,14 +186,14 @@ class TotpTest extends UnitTestCase // Check 100 times WITHOUT additional auth factors for ($i=0; $i<100; $i++) { // Assert correct length and secret only contains allowed alphabet - self::assertRegExp('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret()); + self::assertMatchesRegularExpression('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret()); } // Check 100 times WITH additional auth factors for ($i=0; $i<100; $i++) { $authFactors = ['uid' => 5, 'username' => 'non.admin']; // Assert correct length and secret only contains allowed alphabet - self::assertRegExp('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret($authFactors)); + self::assertMatchesRegularExpression('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret($authFactors)); } } } diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php index d1e0e3709d6b..21105b46383f 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FileBackendTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** @@ -500,7 +501,7 @@ class FileBackendTest extends UnitTestCase if (method_exists($this, 'assertFileDoesNotExist')) { self::assertFileDoesNotExist($pathAndFilename); } else { - self::assertFileNotExists($pathAndFilename); + self::assertFileDoesNotExist($pathAndFilename); } } @@ -859,8 +860,8 @@ class FileBackendTest extends UnitTestCase self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest2'); } else { - self::assertFileNotExists('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); - self::assertFileNotExists('vfs://Foo/cache/data/UnitTestCache/BackendFileTest2'); + self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); + self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest2'); } } @@ -937,7 +938,7 @@ class FileBackendTest extends UnitTestCase if (method_exists($this, 'assertFileDoesNotExist')) { self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); } else { - self::assertFileNotExists('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); + self::assertFileDoesNotExist('vfs://Foo/cache/data/UnitTestCache/BackendFileTest1'); } self::assertFileExists('vfs://Foo/cache/data/UnitTestCache/BackendFileTest2'); diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php index b5c40287eee3..f373e051d1cf 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class Typo3DatabaseBackendTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php b/typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php index 59fd653a4bc7..1d04c5b5dc9e 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Cache/CacheManagerTest.php @@ -40,6 +40,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class CacheManagerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Command/SendEmailCommandTest.php b/typo3/sysext/core/Tests/Unit/Command/SendEmailCommandTest.php index e3f78f7487a3..40000e2b6cd6 100644 --- a/typo3/sysext/core/Tests/Unit/Command/SendEmailCommandTest.php +++ b/typo3/sysext/core/Tests/Unit/Command/SendEmailCommandTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SendEmailCommandTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/ExtensionConfigurationTest.php b/typo3/sysext/core/Tests/Unit/Configuration/ExtensionConfigurationTest.php index 3ca1cf9874f9..7e7d8b1dcf8b 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/ExtensionConfigurationTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/ExtensionConfigurationTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtensionConfigurationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php index 677ec3986221..3e7b34753c03 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php @@ -58,6 +58,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FlexFormToolsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/Loader/PageTsConfigLoaderTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Loader/PageTsConfigLoaderTest.php index 8a8a5d4b1574..01d77889f433 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Loader/PageTsConfigLoaderTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Loader/PageTsConfigLoaderTest.php @@ -25,6 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PageTsConfigLoaderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php index 166a16feb69e..c675ac02be52 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php @@ -146,12 +146,27 @@ options: // Accessible mock to $subject since getFileContents calls GeneralUtility methods $subject = $this->getAccessibleMock(YamlFileLoader::class, ['getFileContents', 'getStreamlinedFileName']); - $subject->expects(self::at(0))->method('getStreamlinedFileName')->with($fileName)->willReturn($fileName); - $subject->expects(self::at(1))->method('getFileContents')->with($fileName)->willReturn($fileContents); - $subject->expects(self::at(2))->method('getStreamlinedFileName')->with($importFileName2, $fileName)->willReturn($importFileName2); - $subject->expects(self::at(3))->method('getFileContents')->with($importFileName2)->willReturn($importFileContents2); - $subject->expects(self::at(4))->method('getStreamlinedFileName')->with($importFileName, $fileName)->willReturn($importFileName); - $subject->expects(self::at(5))->method('getFileContents')->with($importFileName)->willReturn($importFileContents); + + $subject + ->expects(self::exactly(3)) + ->method('getStreamlinedFileName') + ->withConsecutive([$fileName, null], [$importFileName2, $fileName], [$importFileName, $fileName]) + ->willReturnOnConsecutiveCalls( + $fileName, + $importFileName2, + $importFileName + ); + + $subject + ->expects(self::exactly(3)) + ->method('getFileContents') + ->withConsecutive([$fileName], [$importFileName2], [$importFileName]) + ->willReturnOnConsecutiveCalls( + $fileContents, + $importFileContents2, + $importFileContents + ); + $output = $subject->load($fileName); self::assertSame($expected, $output); } diff --git a/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php b/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php index 9aa9009dd15f..a120174d64a9 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/Parser/PageTsConfigParserTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PageTsConfigParserTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php b/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php index 548d3a38b90b..64bf42814aa1 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/SiteConfigurationTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SiteConfigurationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php index 2cd679f7d729..ae9ed2e702bc 100644 --- a/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php +++ b/typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php @@ -41,6 +41,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractConditionMatcherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $backupEnvironment = true; /** diff --git a/typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php b/typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php index 5927e3b52d78..52cf692c5f48 100644 --- a/typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class CommandRegistryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ContainerInterface|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/PasswordHashFactoryTest.php b/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/PasswordHashFactoryTest.php index e05196956c89..a263045ee48c 100644 --- a/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/PasswordHashFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/PasswordHashFactoryTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PasswordHashFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php index 9d6560372232..7ab7e40b77ce 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php @@ -40,7 +40,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DataHandlerTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php b/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php index 09db1fc4d4fc..081664dade9a 100644 --- a/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ConnectionTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var Connection|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php b/typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php index fd0768d83657..6edec16ef47d 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PlatformInformationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Test cases for stripping of leading logical operators in where constraints. * diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php index f0b07501deae..5efaee6c53e2 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExpressionBuilderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var Connection */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php index 77be53a1761a..7b73e9cb511a 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php @@ -41,6 +41,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class QueryBuilderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var Connection|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php index 0fff5d4fce2d..c665e2c0a0e2 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class QueryHelperTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Test cases for stripping of leading logical operators in where constraints. * diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionContainerTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionContainerTest.php index 2b6bf2f32329..afc6f8e9ea55 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionContainerTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionContainerTest.php @@ -24,6 +24,7 @@ use TYPO3\CMS\Core\Tests\Unit\Database\Mocks\InstantiatableAbstractRestrictionCo class AbstractRestrictionContainerTest extends AbstractRestrictionTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php index b123d6cd46d7..cfff61ac2068 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class AbstractRestrictionTestCase extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php index 57f753da2821..73855bf31ec1 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php @@ -25,6 +25,7 @@ use TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionContainerInterface class LimitToTablesRestrictionContainerTest extends AbstractRestrictionTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/ConnectionMigratorTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/ConnectionMigratorTest.php index 66072d52c4e4..3192f93ffd98 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/ConnectionMigratorTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/ConnectionMigratorTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ConnectionMigratorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \Doctrine\DBAL\Platforms\AbstractPlatform|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php index 46381b65f899..5d6512188f07 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SchemaColumnDefinitionListenerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var SchemaColumnDefinitionListener */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php index b52048c21928..09614bc551fa 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TableBuilderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php index 135a06a2e89f..94a32c3b1ada 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SqlReaderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php index e8e391ad9f43..d9f2df2bab83 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class EnumTypeTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Set up the test subject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php b/typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php index f517ab3daca0..29e8f1b6a38a 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SetTypeTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Set up the test subject */ diff --git a/typo3/sysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php b/typo3/sysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php index 629a229341f6..d64134cda4e7 100644 --- a/typo3/sysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php +++ b/typo3/sysext/core/Tests/Unit/Database/SoftReferenceIndexTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SoftReferenceIndexTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; public function findRefReturnsParsedElementsDataProvider(): array diff --git a/typo3/sysext/core/Tests/Unit/DependencyInjection/FailsafeContainerTest.php b/typo3/sysext/core/Tests/Unit/DependencyInjection/FailsafeContainerTest.php index 80fc3f5550bb..9860e5fbeddc 100644 --- a/typo3/sysext/core/Tests/Unit/DependencyInjection/FailsafeContainerTest.php +++ b/typo3/sysext/core/Tests/Unit/DependencyInjection/FailsafeContainerTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FailsafeContainerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderCompilationPassTest.php b/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderCompilationPassTest.php index 4a2fce0b3f87..ab52cc4dbb64 100644 --- a/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderCompilationPassTest.php +++ b/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderCompilationPassTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ServiceProviderCompilationPassTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function getServiceProviderRegistry(array $serviceProviders) { $serviceProviderRegistryProphecy = $this->prophesize(ServiceProviderRegistry::class); diff --git a/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderRegistryTest.php b/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderRegistryTest.php index f5cad9622b47..c2355ce8c69c 100644 --- a/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/DependencyInjection/ServiceProviderRegistryTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ServiceProviderRegistryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var PackageManager|\Prophecy\Prophecy\ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php b/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php index db383f023d4a..77f22632d2f4 100644 --- a/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php +++ b/typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ProductionExceptionHandlerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php b/typo3/sysext/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php index cc80b497b38c..240eb79eb2b4 100644 --- a/typo3/sysext/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php +++ b/typo3/sysext/core/Tests/Unit/EventDispatcher/EventDispatcherTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class EventDispatcherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ListenerProviderInterface|ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/EventDispatcher/ListenerProviderTest.php b/typo3/sysext/core/Tests/Unit/EventDispatcher/ListenerProviderTest.php index 558e15f19568..a05762067e7f 100644 --- a/typo3/sysext/core/Tests/Unit/EventDispatcher/ListenerProviderTest.php +++ b/typo3/sysext/core/Tests/Unit/EventDispatcher/ListenerProviderTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ListenerProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ContainerInterface|ObjectProphecy */ diff --git a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php index 51001a3c6f68..c3a3655d34f9 100644 --- a/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php +++ b/typo3/sysext/core/Tests/Unit/ExpressionLanguage/ResolverTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ResolverTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php b/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php index f519b692ec10..24af09d89ab1 100644 --- a/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php +++ b/typo3/sysext/core/Tests/Unit/FormProtection/AbstractFormProtectionTest.php @@ -135,7 +135,7 @@ class AbstractFormProtectionTest extends UnitTestCase if (method_exists($this, 'assertMatchesRegularExpression')) { self::assertMatchesRegularExpression('/^[0-9a-f]{40}$/', $this->subject->generateToken('foo')); } else { - self::assertRegExp('/^[0-9a-f]{40}$/', $this->subject->generateToken('foo')); + self::assertMatchesRegularExpression('/^[0-9a-f]{40}$/', $this->subject->generateToken('foo')); } } diff --git a/typo3/sysext/core/Tests/Unit/Hooks/TcaItemsProcessorFunctionsTest.php b/typo3/sysext/core/Tests/Unit/Hooks/TcaItemsProcessorFunctionsTest.php index 7a56d76672b1..dc9021883497 100644 --- a/typo3/sysext/core/Tests/Unit/Hooks/TcaItemsProcessorFunctionsTest.php +++ b/typo3/sysext/core/Tests/Unit/Hooks/TcaItemsProcessorFunctionsTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TcaItemsProcessorFunctionsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/core/Tests/Unit/Http/ClientTest.php b/typo3/sysext/core/Tests/Unit/Http/ClientTest.php index 7fa1dfe9d5de..7b4217d0c395 100644 --- a/typo3/sysext/core/Tests/Unit/Http/ClientTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/ClientTest.php @@ -37,6 +37,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ClientTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function testImplementsPsr18ClientInterface(): void { $client = new Client(); diff --git a/typo3/sysext/core/Tests/Unit/Http/MiddlewareDispatcherTest.php b/typo3/sysext/core/Tests/Unit/Http/MiddlewareDispatcherTest.php index 00db87aec441..c3f6e98990d5 100644 --- a/typo3/sysext/core/Tests/Unit/Http/MiddlewareDispatcherTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/MiddlewareDispatcherTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MiddlewareDispatcherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Http/MiddlewareStackResolverTest.php b/typo3/sysext/core/Tests/Unit/Http/MiddlewareStackResolverTest.php index 77f7bf2aab53..c8f3fbf90b94 100644 --- a/typo3/sysext/core/Tests/Unit/Http/MiddlewareStackResolverTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/MiddlewareStackResolverTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MiddlewareStackResolverTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php b/typo3/sysext/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php index da6d631ea77a..6c9c1fe271ea 100644 --- a/typo3/sysext/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/Security/ReferrerEnforcerTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ReferrerEnforcerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; private static function buildRefreshContentPattern(string $uri): string { return sprintf( @@ -129,7 +130,7 @@ class ReferrerEnforcerTest extends UnitTestCase if (method_exists($this, 'assertMatchesRegularExpression')) { self::assertMatchesRegularExpression($expectedResponse, (string)$response->getBody()); } else { - self::assertRegExp($expectedResponse, (string)$response->getBody()); + self::assertMatchesRegularExpression($expectedResponse, (string)$response->getBody()); } } } diff --git a/typo3/sysext/core/Tests/Unit/Http/UploadedFileFactoryTest.php b/typo3/sysext/core/Tests/Unit/Http/UploadedFileFactoryTest.php index 6bab7554023a..d994f336333e 100644 --- a/typo3/sysext/core/Tests/Unit/Http/UploadedFileFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/UploadedFileFactoryTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class UploadedFileFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php index d62aa34b6e4e..05775676f928 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/IconFactoryTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class IconFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php index e4a0f6d1a0a0..0927ffc31a1c 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/IconProvider/FontawesomeIconProviderTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FontawesomeIconProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php index 6ba3ae492aa0..79959627ce8f 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/IconRegistryTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class IconRegistryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var string */ diff --git a/typo3/sysext/core/Tests/Unit/Imaging/IconTest.php b/typo3/sysext/core/Tests/Unit/Imaging/IconTest.php index 0b8f3fe461b6..9b7fc666e73e 100644 --- a/typo3/sysext/core/Tests/Unit/Imaging/IconTest.php +++ b/typo3/sysext/core/Tests/Unit/Imaging/IconTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class IconTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var Icon */ diff --git a/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php b/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php index a87b0aae1faf..8ec75a72fcb5 100644 --- a/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Localization/LocalizationFactoryTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class LocalizationFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php b/typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php index cc1af8e2b1e3..a7f26a5837bf 100644 --- a/typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php +++ b/typo3/sysext/core/Tests/Unit/Localization/Parser/XliffParserTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class XliffParserTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var array */ diff --git a/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php b/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php index a6598c388605..ee594ab4020f 100644 --- a/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php +++ b/typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TcaSystemLanguageCollectorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool */ diff --git a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php index cc5186b67d5a..9bb2886248b0 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/MailerTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MailerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php index 7adf0994b4c4..8baaedb1a358 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Mail/TransportFactoryTest.php @@ -41,6 +41,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TransportFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Package/AbstractServiceProviderTest.php b/typo3/sysext/core/Tests/Unit/Package/AbstractServiceProviderTest.php index ff4ef559ab4a..0633c08c27ee 100644 --- a/typo3/sysext/core/Tests/Unit/Package/AbstractServiceProviderTest.php +++ b/typo3/sysext/core/Tests/Unit/Package/AbstractServiceProviderTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractServiceProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php b/typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php index 8927cf81a331..780ab55e24d8 100644 --- a/typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php +++ b/typo3/sysext/core/Tests/Unit/Page/PageRendererTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PageRendererTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php b/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php index aa2804a10d34..e1ba3826a693 100644 --- a/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php +++ b/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TcaPreparationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test * @dataProvider configureCategoryRelationsDataProvider diff --git a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php index 24db998757ab..e19a70e4b9ff 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php @@ -1219,7 +1219,7 @@ class LocalDriverTest extends BaseTestCase if (method_exists($this, 'assertFileDoesNotExist')) { self::assertFileDoesNotExist($this->getUrlInMount('/someFile')); } else { - self::assertFileNotExists($this->getUrlInMount('/someFile')); + self::assertFileDoesNotExist($this->getUrlInMount('/someFile')); } self::assertEquals('/targetFolder/file', $newIdentifier); @@ -1459,7 +1459,7 @@ class LocalDriverTest extends BaseTestCase if (method_exists($this, 'assertFileDoesNotExist')) { self::assertFileDoesNotExist($this->getUrlInMount('/sourceFolder')); } else { - self::assertFileNotExists($this->getUrlInMount('/sourceFolder')); + self::assertFileDoesNotExist($this->getUrlInMount('/sourceFolder')); } } diff --git a/typo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php b/typo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php index f105afbe8d4a..3be6f8d520f3 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MetaDataAspectTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ResourceStorage|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php b/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php index a3da39f0aad5..f22957dce825 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Processing/ProcessorRegistryTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ProcessorRegistryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/core/Tests/Unit/Resource/Repository/AbstractRepositoryTest.php b/typo3/sysext/core/Tests/Unit/Resource/Repository/AbstractRepositoryTest.php index e854b2dbaa2c..f05b45449858 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Repository/AbstractRepositoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Repository/AbstractRepositoryTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractRepositoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var AbstractRepository */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php index 65b1211aa9cf..e4ee52a907b0 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorIntegrationTest.php @@ -92,7 +92,7 @@ class ResourceCompressorIntegrationTest extends BaseTestCase if (method_exists($this, 'assertFileDoesNotExist')) { self::assertFileDoesNotExist($htaccessPath); } else { - self::assertFileNotExists($htaccessPath); + self::assertFileDoesNotExist($htaccessPath); } } diff --git a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php index 26ae653fadcd..775725bc12c2 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php @@ -42,6 +42,7 @@ use TYPO3\CMS\Core\Utility\StringUtility; */ class ResourceStorageTest extends BaseTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php b/typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php index 40c3f4d3aa42..170ca5601827 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/StorageRepositoryTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class StorageRepositoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /********************************** * Drivers **********************************/ diff --git a/typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php b/typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php index c95e3fa85542..c437df0a17b6 100644 --- a/typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php +++ b/typo3/sysext/core/Tests/Unit/Resource/Utility/FileExtensionFilterTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FileExtensionFilterTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Cleans up this test suite. */ diff --git a/typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php b/typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php index 38a9498972fb..6d2e9cc770dd 100644 --- a/typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Routing/Aspect/AspectFactoryTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class AspectFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var AspectFactory */ diff --git a/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php b/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php index 637d2f389945..d539f734af17 100644 --- a/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php +++ b/typo3/sysext/core/Tests/Unit/Routing/PageRouterTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PageRouterTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool */ diff --git a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php index 7d46ebab8e3e..52505fdc5de4 100644 --- a/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/Service/MarkerBasedTemplateServiceTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class MarkerBasedTemplateServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var MarkerBasedTemplateService */ diff --git a/typo3/sysext/core/Tests/Unit/Session/SessionManagerTest.php b/typo3/sysext/core/Tests/Unit/Session/SessionManagerTest.php index 3d33f9170697..d4299fb9e840 100644 --- a/typo3/sysext/core/Tests/Unit/Session/SessionManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Session/SessionManagerTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SessionManagerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php b/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php index c22c28671f44..8eb79695afbc 100644 --- a/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class UserSessionManagerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function willExpireDataProvider() { return [ diff --git a/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php b/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php index 88a45a5fa5d7..e60d83a8b6f4 100644 --- a/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php +++ b/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SiteTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function getBaseReturnsProperUriDataProvider() { return [ diff --git a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/DatabaseTreeDataProviderTest.php b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/DatabaseTreeDataProviderTest.php index e78e5a8f72f0..e17b589b73bb 100644 --- a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/DatabaseTreeDataProviderTest.php +++ b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/DatabaseTreeDataProviderTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DatabaseTreeDataProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \PHPUnit\Framework\MockObject\MockObject|DatabaseTreeDataProvider|\TYPO3\TestingFramework\Core\AccessibleObjectInterface */ diff --git a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php index d5775119ccc8..3acaede92a68 100644 --- a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TreeDataProviderFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php b/typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php index cfb062b48668..d92c8f114c94 100644 --- a/typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php +++ b/typo3/sysext/core/Tests/Unit/Type/File/ImageInfoTest.php @@ -27,7 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ImageInfoTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php index 0a7e5df942e6..2b4d5a0f3d04 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TypoScriptParserTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TypoScriptParser|AccessibleObjectInterface */ diff --git a/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php b/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php index dd61e3022723..c68d09e68fd4 100644 --- a/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php +++ b/typo3/sysext/core/Tests/Unit/TypoScript/TemplateServiceTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TemplateServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var TemplateService */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php index e83914441765..4a2787df7b9c 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtensionManagementUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/File/ExtendedFileUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/File/ExtendedFileUtilityTest.php index b611acfa6f53..9c1bf483f22f 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/File/ExtendedFileUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/File/ExtendedFileUtilityTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtendedFileUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Sets up this testcase */ diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php index 1984325575fc..6103cc8d54f8 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php @@ -47,6 +47,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class GeneralUtilityTest extends UnitTestCase { const NO_FIX_PERMISSIONS_ON_WINDOWS = 'fixPermissions() not available on Windows (method does nothing)'; + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject @@ -1317,7 +1318,7 @@ class GeneralUtilityTest extends UnitTestCase public function getIndpEnvTypo3SitePathReturnsStringStartingWithDrive() { $result = GeneralUtility::getIndpEnv('TYPO3_SITE_PATH'); - self::assertRegExp('/^[a-z]:\//i', $result); + self::assertMatchesRegularExpression('/^[a-z]:\//i', $result); } /** diff --git a/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php index daef8d1e9d52..7e68c171434a 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RootlineUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var RootlineUtility|AccessibleObjectInterface|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/core/composer.json b/typo3/sysext/core/composer.json index f3bf7b99a548..3e047c272df6 100644 --- a/typo3/sysext/core/composer.json +++ b/typo3/sysext/core/composer.json @@ -79,7 +79,9 @@ "friendsofphp/php-cs-fixer": "^2.19 || ^3.0", "php-webdriver/webdriver": "^1.9.0", "phpspec/prophecy": "^1.12.2", + "phpspec/prophecy-phpunit": "^2.0", "phpstan/phpstan": "^0.12.64", + "phpunit/phpunit": "^9.5", "typo3/cms-styleguide": "~11.4.0", "typo3/testing-framework": "^6.8.4" }, diff --git a/typo3/sysext/dashboard/Tests/Unit/DependencyInjection/DashboardWidgetPassTest.php b/typo3/sysext/dashboard/Tests/Unit/DependencyInjection/DashboardWidgetPassTest.php index 3ce47d1396b2..988fd1cdd5a7 100644 --- a/typo3/sysext/dashboard/Tests/Unit/DependencyInjection/DashboardWidgetPassTest.php +++ b/typo3/sysext/dashboard/Tests/Unit/DependencyInjection/DashboardWidgetPassTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class DashboardWidgetPassTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var DashboardWidgetPass */ diff --git a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php index 67dd13ec8f5d..980bd9d81546 100644 --- a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php +++ b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class WidgetRegistryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php index e9d88b035ebc..4d8df5f0705c 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php @@ -45,6 +45,7 @@ use TYPO3Fluid\Fluid\View\TemplateView as FluidTemplateView; */ class ActionControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php index af927f67d5e8..10ff9aa63257 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/BackendTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class BackendTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function tearDown(): void { GeneralUtility::purgeInstances(); diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php index 7edad704acb7..d05f10fd428e 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php @@ -46,6 +46,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DataMapperTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * This test does not actually test anything rather than map calls both mocked methods getTargetType and mapSingleRow * while completely ignoring the result of the method. diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php index 40de4f4754bf..5d380783ff67 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/PersistenceManagerTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class PersistenceManagerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ObjectManagerInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/QueryFactoryTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/QueryFactoryTest.php index 0d056a0e6a32..a464aea1b188 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/QueryFactoryTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/QueryFactoryTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class QueryFactoryTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var string */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php index 3659cba05a6e..1b570195953b 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php @@ -45,6 +45,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class Typo3DbBackendTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Due to nested PageRepository / FrontendRestriction Container issues, the Context object is set * @var bool diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php index 178eed223cee..65180048a7d4 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbQueryParserTest.php @@ -45,6 +45,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class Typo3DbQueryParserTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Clean up after tests */ diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Typo3QuerySettingsTest.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Typo3QuerySettingsTest.php index 5d0c3051b184..f9c3dfb03ecc 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Typo3QuerySettingsTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Typo3QuerySettingsTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class Typo3QuerySettingsTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected ?Typo3QuerySettings $subject = null; /** diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php index b23450069912..314ad9c7716f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ReflectionServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php index d5dbbc756baf..8b41af040c88 100644 --- a/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Service/ExtensionServiceTest.php @@ -36,6 +36,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtensionServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface */ diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php b/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php index b8e987cd5d2a..62be63642a32 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php @@ -68,7 +68,7 @@ class DebuggerUtilityTest extends UnitTestCase if (method_exists($this, 'assertMatchesRegularExpression')) { self::assertMatchesRegularExpression('/foo.*bar/', $result); } else { - self::assertRegExp('/foo.*bar/', $result); + self::assertMatchesRegularExpression('/foo.*bar/', $result); } } diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php b/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php index e8ac266f1191..1d441d3a7f9a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class LocalizationUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * Instance of configurationManagerInterface, injected to subject * diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Controller/ActionControllerTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Controller/ActionControllerTest.php index f3e97535208d..1529f5ba5901 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Controller/ActionControllerTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Controller/ActionControllerTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ActionControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var array List of created fake extensions to be deleted in tearDown() again */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php index 31f6db6c1558..12ad70f49bda 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtensionStatusTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var LanguageService */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php index 390729d31720..6143b4b1b59a 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Service/ExtensionManagementServiceTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ExtensionManagementServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $managementService; protected $dependencyUtilityProphecy; protected $installUtilityProphecy; diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php index b4e16dbb81bd..dcb26dfec517 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DependencyUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php index b13cea81bb55..79b1da01171c 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/InstallUtilityTest.php @@ -40,6 +40,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class InstallUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var string */ diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php index 1d096b87e8d4..690024efa885 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ListUtilityTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ListUtility */ diff --git a/typo3/sysext/felogin/Tests/Unit/Configuration/RecoveryConfigurationTest.php b/typo3/sysext/felogin/Tests/Unit/Configuration/RecoveryConfigurationTest.php index 784cb89fe9a9..71812a969e27 100644 --- a/typo3/sysext/felogin/Tests/Unit/Configuration/RecoveryConfigurationTest.php +++ b/typo3/sysext/felogin/Tests/Unit/Configuration/RecoveryConfigurationTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RecoveryConfigurationTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ObjectProphecy|Context */ diff --git a/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php b/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php index 66e73d107f07..42d407e3048c 100644 --- a/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php +++ b/typo3/sysext/felogin/Tests/Unit/Redirect/RedirectHandlerTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RedirectHandlerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * If set to true, tearDown() will purge singleton instances created by the test. * diff --git a/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php b/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php index c036b6dcfe59..23ddfd3b67e6 100644 --- a/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php +++ b/typo3/sysext/felogin/Tests/Unit/Service/RecoveryServiceTest.php @@ -36,6 +36,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RecoveryServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool */ diff --git a/typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/ViewHelperResolverTest.php b/typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/ViewHelperResolverTest.php index 294f90d4e5a9..1adc8c0f4a48 100644 --- a/typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/ViewHelperResolverTest.php +++ b/typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/ViewHelperResolverTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ViewHelperResolverTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test * @dataProvider getResolveViewHelperNameTestValues diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormFrontendControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormFrontendControllerTest.php index 8fa558f633ec..21b4bd94ffda 100644 --- a/typo3/sysext/form/Tests/Unit/Controller/FormFrontendControllerTest.php +++ b/typo3/sysext/form/Tests/Unit/Controller/FormFrontendControllerTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormFrontendControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; public function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php index 0f3aed06e610..26895050e93d 100644 --- a/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php +++ b/typo3/sysext/form/Tests/Unit/Controller/FormManagerControllerTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormManagerControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php b/typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php index 99e45f39a309..0b64cfc5559f 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ConfigurationServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/form/Tests/Unit/Domain/Factory/ArrayFormFactoryTest.php b/typo3/sysext/form/Tests/Unit/Domain/Factory/ArrayFormFactoryTest.php index fde5a88c1973..ff9bb1550ab3 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Factory/ArrayFormFactoryTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Factory/ArrayFormFactoryTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ArrayFormFactoryTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php index abbd4536a33a..1d0e04663355 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php @@ -33,6 +33,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractFinisherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/ClosureFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/ClosureFinisherTest.php index 118d7428ed5e..5bb8b401ca6b 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/ClosureFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/ClosureFinisherTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ClosureFinisherTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php index e8899ae57425..986863f488a4 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/RedirectFinisherTest.php @@ -36,6 +36,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RedirectFinisherTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/SaveToDatabaseFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/SaveToDatabaseFinisherTest.php index 7ea7e7624be3..b2b433a380e1 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/SaveToDatabaseFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/SaveToDatabaseFinisherTest.php @@ -26,7 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SaveToDatabaseFinisherTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php b/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php index cc424c8d5122..203449373d0d 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Runtime/FormRuntimeTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormRuntimeTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php index 85f3b2144fc8..4b02ae24e6fa 100644 --- a/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php +++ b/typo3/sysext/form/Tests/Unit/Hooks/DataStructureIdentifierHookTest.php @@ -30,6 +30,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DataStructureIdentifierHookTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/form/Tests/Unit/Mvc/ProcessingRuleTest.php b/typo3/sysext/form/Tests/Unit/Mvc/ProcessingRuleTest.php index 1d6e8ba113a6..8d14c87c475d 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/ProcessingRuleTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/ProcessingRuleTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ProcessingRuleTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php index 76958da8b3cf..451f6fc063d8 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Property/TypeConverter/FormDefinitionArrayConverterTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FormDefinitionArrayConverterTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php index f70717fd9162..562aa523415b 100644 --- a/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php +++ b/typo3/sysext/form/Tests/Unit/Service/TranslationServiceTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TranslationServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php index 8398160e428b..bd4d10253232 100644 --- a/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php @@ -45,6 +45,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class FrontendUserAuthenticationTest extends UnitTestCase { private const NOT_CHECKED_INDICATOR = '--not-checked--'; + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php index 5818d9799836..d313ca8956b5 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/CaseContentObjectTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class CaseContentObjectTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 84bcedae4c23..cdc2f52700fe 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -78,6 +78,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ContentObjectRendererTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php index 73fd29d25486..03c331689b4e 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php @@ -39,7 +39,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FilesContentObjectTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php index 56a0b9487011..09ab346b4656 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php @@ -34,6 +34,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; */ class FluidTemplateContentObjectTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php index ca6eb490742a..c032acf2686f 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ImageContentObjectTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php index 3c7d499fd5d1..d261d9165b7e 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php @@ -49,6 +49,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractMenuContentObjectTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var AbstractMenuContentObject */ diff --git a/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php b/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php index 10bab48a1e19..d1b46b19f7a4 100644 --- a/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php @@ -28,6 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ErrorControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php index 48c7cfeb17f0..baabfe1a4687 100644 --- a/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Controller/TypoScriptFrontendControllerTest.php @@ -51,6 +51,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class TypoScriptFrontendControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php index b1f938182f4e..53923be60d9d 100644 --- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class FlexFormProcessorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ContentObjectRenderer */ diff --git a/typo3/sysext/frontend/Tests/Unit/DataProcessing/SiteProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/DataProcessing/SiteProcessorTest.php index 919dbff5241d..27d78ee8bd61 100644 --- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/SiteProcessorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/SiteProcessorTest.php @@ -28,7 +28,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SiteProcessorTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php b/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php index 85186218c6a4..fe4286828907 100644 --- a/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php @@ -38,6 +38,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RequestHandlerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; public function generateHtmlTagIncludesAllPossibilitiesDataProvider() diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php index 119ccdc24f45..d9e31280465b 100644 --- a/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PageArgumentValidatorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php index 4a02e4fed470..0dcc0ffd8dd2 100644 --- a/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Middleware/SiteResolverTest.php @@ -35,6 +35,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class SiteResolverTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/Middleware/StaticRouteResolverTest.php b/typo3/sysext/frontend/Tests/Unit/Middleware/StaticRouteResolverTest.php index 1374bdde53f1..d498fdf4517b 100644 --- a/typo3/sysext/frontend/Tests/Unit/Middleware/StaticRouteResolverTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Middleware/StaticRouteResolverTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class StaticRouteResolverTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $requestHandler; /** diff --git a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php index 85344494fc02..9c40ad9e2c49 100644 --- a/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php @@ -34,6 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractPluginTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var AbstractPlugin */ diff --git a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php index 274cda124c59..a8cedab1c3d5 100644 --- a/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Typolink/AbstractTypolinkBuilderTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class AbstractTypolinkBuilderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php b/typo3/sysext/frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php index 5ab52131c5ce..be043f04cd4a 100644 --- a/typo3/sysext/frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php +++ b/typo3/sysext/frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php @@ -34,7 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class DatabaseRecordLinkBuilderTest extends UnitTestCase { - + use \Prophecy\PhpUnit\ProphecyTrait; /** * Dataprovider with different parameter configurations * diff --git a/typo3/sysext/install/Tests/Unit/Controller/UpgradeControllerTest.php b/typo3/sysext/install/Tests/Unit/Controller/UpgradeControllerTest.php index 449ecf66e549..f93faa87f1bc 100644 --- a/typo3/sysext/install/Tests/Unit/Controller/UpgradeControllerTest.php +++ b/typo3/sysext/install/Tests/Unit/Controller/UpgradeControllerTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class UpgradeControllerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @return array */ diff --git a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php index cf4e2e095495..0e889ec66ea4 100644 --- a/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php +++ b/typo3/sysext/install/Tests/Unit/Service/CoreVersionServiceTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class CoreVersionServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php index d7e8af6c658f..7f131cd3276c 100644 --- a/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php +++ b/typo3/sysext/install/Tests/Unit/Service/SilentConfigurationUpgradeServiceTest.php @@ -39,6 +39,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class SilentConfigurationUpgradeServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ConfigurationManager|\PHPUnit\Framework\MockObject\MockObject */ diff --git a/typo3/sysext/install/Tests/Unit/Service/Typo3tempFileServiceTest.php b/typo3/sysext/install/Tests/Unit/Service/Typo3tempFileServiceTest.php index 98834fa508b6..9b361675c221 100644 --- a/typo3/sysext/install/Tests/Unit/Service/Typo3tempFileServiceTest.php +++ b/typo3/sysext/install/Tests/Unit/Service/Typo3tempFileServiceTest.php @@ -25,6 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class Typo3tempFileServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/install/Tests/Unit/UpgradeAnalysis/DocumentationFileTest.php b/typo3/sysext/install/Tests/Unit/UpgradeAnalysis/DocumentationFileTest.php index 6e4e5456c40b..09a88391c1f3 100644 --- a/typo3/sysext/install/Tests/Unit/UpgradeAnalysis/DocumentationFileTest.php +++ b/typo3/sysext/install/Tests/Unit/UpgradeAnalysis/DocumentationFileTest.php @@ -27,6 +27,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class DocumentationFileTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var DocumentationFile */ diff --git a/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php b/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php index 61b387a1dd7b..70dffc9dd29a 100644 --- a/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php +++ b/typo3/sysext/linkvalidator/Tests/Unit/Linktype/ExternalLinktypeTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ExternalLinktypeTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected function setUp(): void { parent::setUp(); diff --git a/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php b/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php index 0468c28add30..3b13d7668cbb 100644 --- a/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php +++ b/typo3/sysext/opendocs/Tests/Unit/Service/OpenDocumentServiceTest.php @@ -26,6 +26,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class OpenDocumentServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var OpenDocumentService */ diff --git a/typo3/sysext/recordlist/Tests/Unit/Browser/FileBrowserTest.php b/typo3/sysext/recordlist/Tests/Unit/Browser/FileBrowserTest.php index c53f856223e2..8ce7efd70487 100644 --- a/typo3/sysext/recordlist/Tests/Unit/Browser/FileBrowserTest.php +++ b/typo3/sysext/recordlist/Tests/Unit/Browser/FileBrowserTest.php @@ -31,6 +31,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class FileBrowserTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test */ diff --git a/typo3/sysext/recordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php b/typo3/sysext/recordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php index 47a4734df39e..2859522ca36f 100644 --- a/typo3/sysext/recordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php +++ b/typo3/sysext/recordlist/Tests/Unit/RecordList/DatabaseRecordListTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class DatabaseRecordListTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; protected DatabaseRecordList $subject; diff --git a/typo3/sysext/redirects/Tests/Unit/FormDataProvider/ValuePickerItemDataProviderTest.php b/typo3/sysext/redirects/Tests/Unit/FormDataProvider/ValuePickerItemDataProviderTest.php index 784582f8b865..9e373ba5a3bd 100644 --- a/typo3/sysext/redirects/Tests/Unit/FormDataProvider/ValuePickerItemDataProviderTest.php +++ b/typo3/sysext/redirects/Tests/Unit/FormDataProvider/ValuePickerItemDataProviderTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class ValuePickerItemDataProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $sysRedirectResultSet = [ 'tableName' => 'sys_redirect', 'processedTca' => [ diff --git a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php index e1e2f4ff612a..35dfa14de4f7 100644 --- a/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php +++ b/typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php @@ -36,6 +36,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class RedirectServiceTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ diff --git a/typo3/sysext/reports/Tests/Unit/Report/ServicesListReportTest.php b/typo3/sysext/reports/Tests/Unit/Report/ServicesListReportTest.php index 9279ce4e13cb..b077ffe3e5e7 100644 --- a/typo3/sysext/reports/Tests/Unit/Report/ServicesListReportTest.php +++ b/typo3/sysext/reports/Tests/Unit/Report/ServicesListReportTest.php @@ -32,6 +32,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class ServicesListReportTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var ServicesListReport */ diff --git a/typo3/sysext/seo/Tests/Unit/HrefLang/HrefLangGeneratorTest.php b/typo3/sysext/seo/Tests/Unit/HrefLang/HrefLangGeneratorTest.php index ffd5fe8930f4..576f46c53b64 100644 --- a/typo3/sysext/seo/Tests/Unit/HrefLang/HrefLangGeneratorTest.php +++ b/typo3/sysext/seo/Tests/Unit/HrefLang/HrefLangGeneratorTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class HrefLangGeneratorTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @test * diff --git a/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php b/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php index f2169c16a373..a795d3d805df 100644 --- a/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php +++ b/typo3/sysext/seo/Tests/Unit/XmlSitemap/PagesXmlSitemapDataProviderTest.php @@ -24,6 +24,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class PagesXmlSitemapDataProviderTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; protected $resetSingletonInstances = true; /** diff --git a/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php b/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php index 0ab08f4abc33..aa48b2a4a75b 100644 --- a/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php +++ b/typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php @@ -29,6 +29,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; */ class RemoteServerTest extends UnitTestCase { + use \Prophecy\PhpUnit\ProphecyTrait; /** * @var bool Reset singletons created by subject */ -- GitLab