From 0564bdff0e4ee08f5cd418272a749bceecde75bf Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Thu, 10 Dec 2020 21:05:32 +0100 Subject: [PATCH] Fix the tests --- .phpunit.result.cache | 1 - Negotiation/FormatNegotiator.php | 2 +- Tests/Functional/VersionTest.php | 14 +++++++------- composer.json | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 .phpunit.result.cache diff --git a/.phpunit.result.cache b/.phpunit.result.cache deleted file mode 100644 index 0ecb0d995..000000000 --- a/.phpunit.result.cache +++ /dev/null @@ -1 +0,0 @@ -C:37:"PHPUnit\Runner\DefaultTestResultCache":36034:{a:2:{s:7:"defects";a:5:{s:83:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testNoCredentialsGives403";i:4;s:80:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testWrongLoginGives401";i:1;s:77:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testSuccessfulLogin";i:1;s:91:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testAccessDeniedExceptionGives403";i:1;s:61:"FOS\RestBundle\Tests\View\ViewHandlerTest::testRegisterHandle";i:4;}s:5:"times";a:332:{s:59:"FOS\RestBundle\Tests\Context\ContextTest::testDefaultValues";d:0.008;s:56:"FOS\RestBundle\Tests\Context\ContextTest::testAttributes";d:0.001;s:59:"FOS\RestBundle\Tests\Context\ContextTest::testGroupAddition";d:0;s:55:"FOS\RestBundle\Tests\Context\ContextTest::testSetGroups";d:0;s:74:"FOS\RestBundle\Tests\Context\ContextTest::testAlreadyExistentGroupAddition";d:0;s:53:"FOS\RestBundle\Tests\Context\ContextTest::testVersion";d:0;s:60:"FOS\RestBundle\Tests\Context\ContextTest::testEnableMaxDepth";d:0;s:61:"FOS\RestBundle\Tests\Context\ContextTest::testDisableMaxDepth";d:0;s:59:"FOS\RestBundle\Tests\Context\ContextTest::testSerializeNull";d:0;s:63:"FOS\RestBundle\Tests\Context\ContextTest::testExclusionStrategy";d:0.01;s:76:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testInterface";d:0.002;s:80:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testDefaultValues";d:0;s:77:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testNameGetter";d:0;s:80:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testDefaultGetter";d:0;s:84:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testDescriptionGetter";d:0;s:86:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testIncompatiblesGetter";d:0;s:79:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testStrictGetter";d:0;s:84:"FOS\RestBundle\Tests\Controller\Annotations\AbstractParamTest::testNotNullConstraint";d:0.002;s:82:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testInterface";d:0.001;s:86:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testDefaultValues";d:0;s:89:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testScalarConstraint";d:0;s:92:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testComplexRequirements";d:0.002;s:100:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testMultipleComplexRequirements";d:0;s:91:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testScalarRequirements";d:0.002;s:90:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testArrayRequirements";d:0;s:83:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testAllowBlank";d:0.001;s:111:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testConstraintsTransformWhenParamIsAnArray";d:0.001;s:116:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testArrayWithBlankConstraintsWhenParamIsAnArray";d:0.001;s:125:"FOS\RestBundle\Tests\Controller\Annotations\AbstractScalarParamTest::testArrayWithNoConstraintsDoesNotCreateInvalidConstraint";d:0;s:72:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testInterface";d:0.001;s:74:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testValueGetter";d:0.013;s:82:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testComplexRequirements";d:0.001;s:79:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testFileRequirements";d:0;s:80:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testImageRequirements";d:0.001;s:106:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testImageConstraintsTransformWhenParamIsAnArray";d:0.001;s:96:"FOS\RestBundle\Tests\Controller\Annotations\FileParamTest::testFileConstraintsWhenParamIsAnArray";d:0;s:73:"FOS\RestBundle\Tests\Controller\Annotations\QueryParamTest::testInterface";d:0.001;s:75:"FOS\RestBundle\Tests\Controller\Annotations\QueryParamTest::testValueGetter";d:0;s:75:"FOS\RestBundle\Tests\Controller\Annotations\RequestParamTest::testInterface";d:0.001;s:77:"FOS\RestBundle\Tests\Controller\Annotations\RequestParamTest::testValueGetter";d:0;s:83:"FOS\RestBundle\Tests\Decoder\JsonToFormDecoderTest::testDecodeWithRemovingFalseData";d:0.001;s:72:"FOS\RestBundle\Tests\Decoder\JsonToFormDecoderTest::testDecodeStringData";d:0;s:166:"FOS\RestBundle\Tests\DependencyInjection\Compiler\ConfigurationCheckPassTest::testShouldThrowRuntimeExceptionWhenBodyConverterIsEnabledButParamConvertersAreNotEnabled";d:0.01;s:123:"FOS\RestBundle\Tests\DependencyInjection\Compiler\ConfigurationCheckPassTest::testExceptionWhenViewAnnotationsAreNotEnabled";d:0;s:142:"FOS\RestBundle\Tests\DependencyInjection\Compiler\FormatListenerRulesPassTest::testRulesAreAddedWhenFormatListenerAndProfilerToolbarAreEnabled";d:0.001;s:128:"FOS\RestBundle\Tests\DependencyInjection\Compiler\FormatListenerRulesPassTest::testNoRulesAreAddedWhenProfilerToolbarAreDisabled";d:0;s:121:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testShouldDoNothingIfSerializerIsFound";d:0.001;s:145:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testShouldThrowInvalidArgumentExceptionWhenNoSerializerIsFound";d:0;s:115:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testShouldConfigureJMSSerializer";d:0;s:116:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testShouldConfigureCoreSerializer";d:0.001;s:134:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testJmsSerializerServiceSupersedesSerializerService";d:0;s:122:"FOS\RestBundle\Tests\DependencyInjection\Compiler\SerializerConfigurationPassTest::testSerializerServiceCanBeJmsSerializer";d:0;s:93:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testExceptionCodesAcceptsIntegers";d:0.009;s:101:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatResponseConstantsConvertedToCodes";d:0.001;s:126:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatIfExceptionCodeIncorrectExceptionIsThrown with data set #0";d:0.001;s:126:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatIfExceptionCodeIncorrectExceptionIsThrown with data set #1";d:0.001;s:126:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatIfExceptionCodeIncorrectExceptionIsThrown with data set #2";d:0.001;s:126:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatIfExceptionCodeIncorrectExceptionIsThrown with data set #3";d:0.001;s:126:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testThatIfExceptionCodeIncorrectExceptionIsThrown with data set #4";d:0.001;s:99:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testLoadBadMessagesClassThrowsException";d:0.001;s:96:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testLoadBadCodesClassThrowsException";d:0.001;s:104:"FOS\RestBundle\Tests\DependencyInjection\ConfigurationTest::testOverwriteFormatListenerRulesDoesNotMerge";d:0.001;s:86:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testDisableBodyListener";d:0.009;s:95:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBodyListenerWithDefaults";d:0.006;s:103:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBodyListenerWithNormalizerString";d:0.004;s:102:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBodyListenerWithNormalizerArray";d:0.005;s:110:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBodyListenerWithNormalizerArrayAndForms";d:0.004;s:88:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testDisableFormatListener";d:0.003;s:97:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadFormatListenerWithDefaults";d:0.003;s:99:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadFormatListenerWithSingleRule";d:0.008;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadParamFetcherListener";d:0.004;s:96:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadParamFetcherListenerForce";d:0.004;s:101:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadFormatListenerWithMultipleRule";d:0.004;s:101:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadFormatListenerMediaTypeNoRules";d:0;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadServicesWithDefaults";d:0.003;s:94:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testDisableViewResponseListener";d:0.003;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadViewResponseListener";d:0.004;s:96:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadViewResponseListenerForce";d:0.004;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testForceEmptyContentDefault";d:0.003;s:89:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testForceEmptyContentIs200";d:0.003;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testViewSerializeNullDefault";d:0.003;s:90:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testViewSerializeNullIsTrue";d:0.003;s:95:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testViewHandlerSerializerOptions";d:0.003;s:92:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testValidatorAliasWhenEnabled";d:0.005;s:93:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testValidatorAliasWhenDisabled";d:0.004;s:86:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadOkMessagesClass";d:0.004;s:115:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBadCodeValueThrowsException with data set #0";d:0;s:115:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBadCodeValueThrowsException with data set #1";d:0;s:115:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBadCodeValueThrowsException with data set #2";d:0;s:115:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testLoadBadCodeValueThrowsException with data set #3";d:0;s:100:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testResponseStatusCodeListenerEnabled";d:0.004;s:92:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testExceptionListenerDisabled";d:0.004;s:83:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testGetConfiguration";d:0;s:92:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testCheckViewHandlerWithJsonp";d:0.003;s:93:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testZoneMatcherListenerDefault";d:0.007;s:86:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testZoneMatcherListener";d:0.004;s:91:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testMimeTypesArePassedArrays";d:0.004;s:112:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testSerializerErrorRendererNotRegisteredByDefault";d:0.003;s:98:"FOS\RestBundle\Tests\DependencyInjection\FOSRestExtensionTest::testRegisterSerializerErrorRenderer";d:0.004;s:109:"FOS\RestBundle\Tests\ErrorRenderer\SerializerErrorRendererTest::testSerializeFlattenExceptionWithStringFormat";d:0.001;s:111:"FOS\RestBundle\Tests\ErrorRenderer\SerializerErrorRendererTest::testSerializeFlattenExceptionWithCallableFormat";d:0;s:122:"FOS\RestBundle\Tests\ErrorRenderer\SerializerErrorRendererTest::testSerializeFlattenExceptionUsingGetPreferredFormatMethod";d:0;s:121:"FOS\RestBundle\Tests\ErrorRenderer\SerializerErrorRendererTest::testFallbackErrorRendererIsUsedWhenFormatCannotBeDetected";d:0;s:107:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "Empty POST request"";d:0.001;s:106:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "Empty PUT request"";d:0;s:108:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "Empty PATCH request"";d:0;s:109:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "Empty DELETE request"";d:0;s:106:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "Empty GET request"";d:0;s:117:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "POST request with parameters"";d:0;s:123:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "POST request with unallowed format"";d:0;s:122:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequest with data set "POST request with no Content-Type"";d:0;s:78:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNoZone";d:0;s:86:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestWithNormalizer";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #0";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #1";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #2";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #3";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #4";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #5";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #6";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #7";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #8";d:0;s:111:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #9";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #10";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #11";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #12";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #13";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #14";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #15";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #16";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #17";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #18";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationWithForms with data set #19";d:0;s:94:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testOnKernelRequestNormalizationException";d:0;s:94:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testBadRequestExceptionOnMalformedContent";d:0;s:112:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testUnsupportedMediaTypeHttpExceptionOnUnsupportedMediaType";d:0;s:130:"FOS\RestBundle\Tests\EventListener\BodyListenerTest::testShouldNotThrowUnsupportedMediaTypeHttpExceptionWhenIsAnEmptyDeleteRequest";d:0;s:88:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testOnKernelControllerNegotiation";d:0.001;s:83:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testOnKernelControllerNoZone";d:0;s:95:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testOnKernelControllerNegotiationStopped";d:0;s:86:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testOnKernelControllerException";d:0;s:94:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testUseSpecifiedFormat with data set #0";d:0;s:94:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testUseSpecifiedFormat with data set #1";d:0;s:75:"FOS\RestBundle\Tests\EventListener\FormatListenerTest::testSfFragmentFormat";d:0;s:76:"FOS\RestBundle\Tests\EventListener\MimeTypeListenerTest::testOnKernelRequest";d:0;s:82:"FOS\RestBundle\Tests\EventListener\MimeTypeListenerTest::testOnKernelRequestNoZone";d:0;s:84:"FOS\RestBundle\Tests\EventListener\MimeTypeListenerTest::testOnKernelRequestWithZone";d:0;s:82:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingAttributes";d:0.003;s:93:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherOnRequest";d:0;s:92:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testParamFetcherOnRequestNoZone";d:0;s:111:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherByTypehint with data set #0";d:0;s:111:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherByTypehint with data set #1";d:0;s:111:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherByTypehint with data set #2";d:0;s:111:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherByTypehint with data set #3";d:0;s:96:"FOS\RestBundle\Tests\EventListener\ParamFetcherListenerTest::testSettingParamFetcherForInvokable";d:0;s:100:"EventListener\ResponseStatusCodeListenerTest::testResponseStatusCodeIsNotSetWhenRequestNotInRestZone";d:0.001;s:100:"EventListener\ResponseStatusCodeListenerTest::testResponseStatusCodeIsNotSetWhenExceptionIsNotMapped";d:0;s:102:"EventListener\ResponseStatusCodeListenerTest::testResponseStatusCodeIsSetWhenExceptionTypeIsConfigured";d:0;s:98:"EventListener\ResponseStatusCodeListenerTest::testResponseStatusCodeIsSetWhenErrorTypeIsConfigured";d:0;s:96:"EventListener\ResponseStatusCodeListenerTest::testResponseStatusCodeIsNotOverriddenInSubRequests";d:0;s:99:"FOS\RestBundle\Tests\EventListener\VersionExclusionListenerTest::testVersionIsNotSetWhenZoneIsFalse";d:0.001;s:81:"FOS\RestBundle\Tests\EventListener\VersionExclusionListenerTest::testVersionIsSet";d:0;s:71:"FOS\RestBundle\Tests\EventListener\VersionListenerTest::testMatchNoZone";d:0;s:112:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testOnKernelViewWhenControllerResultIsNotViewObject";d:0.001;s:92:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testStatusCode with data set #0";d:0;s:92:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testStatusCode with data set #1";d:0;s:92:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testStatusCode with data set #2";d:0;s:112:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testSerializerEnableMaxDepthChecks with data set #0";d:0;s:112:"FOS\RestBundle\Tests\EventListener\ViewResponseListenerTest::testSerializerEnableMaxDepthChecks with data set #1";d:0;s:80:"FOS\RestBundle\Tests\EventListener\ZoneMatcherListenerTest::testNoRequestMatcher";d:0;s:87:"FOS\RestBundle\Tests\EventListener\ZoneMatcherListenerTest::testWithRequestMatcherMatch";d:0;s:89:"FOS\RestBundle\Tests\EventListener\ZoneMatcherListenerTest::testWithRequestMatcherNoMatch";d:0;s:83:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testNoCredentialsGives403";d:0;s:80:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testWrongLoginGives401";d:0;s:77:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testSuccessfulLogin";d:0;s:91:"FOS\RestBundle\Tests\Functional\AccessDeniedListenerTest::testAccessDeniedExceptionGives403";d:0;s:67:"FOS\RestBundle\Tests\Functional\AllowedMethodsTest::testAllowHeader";d:0.027;s:72:"FOS\RestBundle\Tests\Functional\BasicAuthTest::testNoCredentialsGives401";d:0.004;s:75:"FOS\RestBundle\Tests\Functional\BasicAuthTest::testWrongCredentialsGives401";d:0.002;s:66:"FOS\RestBundle\Tests\Functional\BasicAuthTest::testSuccessfulLogin";d:0.002;s:80:"FOS\RestBundle\Tests\Functional\BasicAuthTest::testAccessDeniedExceptionGives403";d:0.004;s:87:"FOS\RestBundle\Tests\Functional\CustomGuardAuthenticatorTest::testNoCredentialsGives401";d:0.002;s:90:"FOS\RestBundle\Tests\Functional\CustomGuardAuthenticatorTest::testWrongCredentialsGives401";d:0.002;s:81:"FOS\RestBundle\Tests\Functional\CustomGuardAuthenticatorTest::testSuccessfulLogin";d:0.002;s:95:"FOS\RestBundle\Tests\Functional\CustomGuardAuthenticatorTest::testAccessDeniedExceptionGives403";d:0.002;s:131:"FOS\RestBundle\Tests\Functional\DependencyInjectionTest::testSerializerRelatedServicesAreNotRemovedWhenJmsSerializerBundleIsEnabled";d:0.002;s:71:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testDefaultParameters";d:0.006;s:71:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testValidRawParameter";d:0.002;s:71:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testValidMapParameter";d:0.001;s:69:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testWithSubRequests";d:0.002;s:73:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParamWithErrors";d:0.002;s:63:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParam";d:0.001;s:67:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParamNull";d:0.001;s:76:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParamArrayNullItem";d:0.001;s:83:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParamImageConstraintArray";d:0.002;s:92:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testFileParamImageConstraintArrayException";d:0.002;s:73:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testValidQueryParameter";d:0.001;s:80:"FOS\RestBundle\Tests\Functional\ParamFetcherTest::testIncompatibleQueryParameter";d:0.003;s:92:"FOS\RestBundle\Tests\Functional\RequestBodyParamConverterTest::testRequestBodyIsDeserialized";d:0.003;s:94:"FOS\RestBundle\Tests\Functional\RequestBodyParamConverterTest::testErrorPageServedByTwigBundle";d:0.01;s:99:"FOS\RestBundle\Tests\Functional\RequestBodyParamConverterTest::testErrorPageServedByFrameworkBundle";d:0.003;s:114:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionJsonUsingErrorRenderer with data set #0";d:0.092;s:114:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionJsonUsingErrorRenderer with data set #1";d:0.09;s:114:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionJsonUsingErrorRenderer with data set #2";d:0.112;s:114:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionJsonUsingErrorRenderer with data set #3";d:0.1;s:113:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeUnknownExceptionJsonWithDebugUsingErrorRenderer";d:0.089;s:116:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeUnknownExceptionJsonWithoutDebugUsingErrorRenderer";d:0.001;s:144:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionCodeMappedToResponseStatusCodeJsonUsingErrorRenderer with data set #0";d:0.001;s:144:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionCodeMappedToResponseStatusCodeJsonUsingErrorRenderer with data set #1";d:0.001;s:144:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionCodeMappedToResponseStatusCodeJsonUsingErrorRenderer with data set #2";d:0.001;s:144:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionCodeMappedToResponseStatusCodeJsonUsingErrorRenderer with data set #3";d:0.001;s:113:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionXmlUsingErrorRenderer with data set #0";d:0.001;s:113:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionXmlUsingErrorRenderer with data set #1";d:0.001;s:113:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionXmlUsingErrorRenderer with data set #2";d:0.002;s:113:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeExceptionXmlUsingErrorRenderer with data set #3";d:0.001;s:98:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeInvalidFormJson with data set #0";d:0.115;s:98:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeInvalidFormJson with data set #1";d:0.098;s:97:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeInvalidFormXml with data set #0";d:0.002;s:97:"FOS\RestBundle\Tests\Functional\SerializerErrorTest::testSerializeInvalidFormXml with data set #1";d:0.003;s:66:"FOS\RestBundle\Tests\Functional\VersionTest::testVersionAnnotation";d:0.008;s:76:"FOS\RestBundle\Tests\Functional\VersionTest::testVersionInPathWithAnnotation";d:0.002;s:68:"FOS\RestBundle\Tests\Functional\VersionTest::testCustomHeaderVersion";d:0.001;s:61:"FOS\RestBundle\Tests\Functional\VersionTest::testQueryVersion";d:0.001;s:68:"FOS\RestBundle\Tests\Functional\VersionTest::testAcceptHeaderVersion";d:0.001;s:63:"FOS\RestBundle\Tests\Functional\VersionTest::testDefaultVersion";d:0.001;s:62:"FOS\RestBundle\Tests\Functional\VersionTest::testVersionInPath";d:0.001;s:70:"FOS\RestBundle\Tests\Functional\ViewResponseListenerTest::testRedirect";d:0.12;s:81:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testEmptyRequestMatcherMap";d:0;s:72:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testStopException";d:0;s:73:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testFallbackFormat";d:0;s:87:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testFallbackFormatWithPriorities";d:0;s:66:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBest";d:0;s:74:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBestFallback";d:0;s:76:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBestWithFormat";d:0;s:85:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBestWithPreferExtension";d:0;s:104:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBestWithPreferExtensionAndUnknownExtension";d:0;s:103:"FOS\RestBundle\Tests\Negotiatior\FormatNegotiatorTest::testGetBestWithFormatWithRequestMimeTypeFallback";d:0;s:88:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalizeSameValueException";d:0;s:87:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalize with data set #0";d:0;s:87:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalize with data set #1";d:0;s:87:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalize with data set #2";d:0;s:104:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalizeLeadingUnderscore with data set #0";d:0;s:104:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalizeLeadingUnderscore with data set #1";d:0;s:104:"FOS\RestBundle\Tests\Normalizer\CamelKeysNormalizerTest::testNormalizeLeadingUnderscore with data set #2";d:0;s:71:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testParamDynamicCreation";d:0;s:66:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testInexistentParam";d:0;s:69:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testDefaultReplacement";d:0;s:81:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testReturnBeforeGettingConstraints";d:0;s:77:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testReturnWhenEmptyConstraints";d:0;s:69:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testNoValidationErrors";d:0;s:67:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testValidationErrors";d:0.001;s:70:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testValidationException";d:0;s:79:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testValidationErrorsInStrictMode";d:0;s:60:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testAllGetter";d:0;s:89:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testEmptyControllerExceptionWhenInitParams";d:0;s:112:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testNotCallableControllerExceptionWhenInitParams with data set #0";d:0;s:112:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testNotCallableControllerExceptionWhenInitParams with data set #1";d:0;s:112:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testNotCallableControllerExceptionWhenInitParams with data set #2";d:0;s:78:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testInexistentIncompatibleParam";d:0;s:68:"FOS\RestBundle\Tests\Request\ParamFetcherTest::testIncompatibleParam";d:0;s:75:"FOS\RestBundle\Tests\Request\ParamReaderTest::testReadsOnlyParamAnnotations";d:0;s:78:"FOS\RestBundle\Tests\Request\ParamReaderTest::testExceptionOnNonExistingMethod";d:0;s:66:"FOS\RestBundle\Tests\Request\ParamReaderTest::testAnnotationReader";d:0;s:73:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testInterface";d:0;s:91:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testContextMergeDuringExecution";d:0;s:109:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testExecutionInterceptsUnsupportedFormatException";d:0;s:95:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testExecutionInterceptsJMSException";d:0;s:109:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testExecutionInterceptsSymfonySerializerException";d:0;s:80:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testRequestAttribute";d:0;s:83:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testValidatorParameters";d:0;s:81:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testValidatorSkipping";d:0;s:70:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testReturn";d:0;s:84:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testContextConfiguration";d:0;s:86:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testValidatorOptionsGetter";d:0;s:72:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testSupports";d:0;s:83:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testSupportsWithNoClass";d:0;s:112:"FOS\RestBundle\Tests\Request\RequestBodyParamConverterTest::testNoContentTypeCausesUnsupportedMediaTypeException";d:0;s:106:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testBasicSerializeAdapterWithoutContextFactories";d:0;s:108:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testBasicDeSerializeAdapterWithoutContextFactories";d:0;s:83:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testBasicSerializeAdapter";d:0.001;s:85:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testBasicDeserializeAdapter";d:0.001;s:85:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testContextInfoAreConverted";d:0.001;s:118:"FOS\RestBundle\Tests\Serializer\JMSSerializerAdapterTest::testContextDoesNotEnableMaxDepthChecksWhenExplicitlyDisabled";d:0;s:76:"FOS\RestBundle\Tests\ExceptionValueMapTest::testResolveExceptionValueIsFound";d:0;s:86:"FOS\RestBundle\Tests\ExceptionValueMapTest::testResolveExceptionValueIsFoundBySubclass";d:0;s:77:"FOS\RestBundle\Tests\ExceptionValueMapTest::testResolveExceptionValueNotFound";d:0;s:93:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testHandle with data set "jQuery callback syntax"";d:0;s:90:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testHandle with data set "YUI callback syntax"";d:0;s:91:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testHandle with data set "jQuery custom syntax"";d:0;s:88:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testHandle with data set "YUI custom syntax"";d:0;s:94:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testGetCallbackFailure with data set "no callback"";d:0;s:112:"FOS\RestBundle\Tests\View\JsonpHandlerTest::testGetCallbackFailure with data set "incorrect callback param name"";d:0;s:91:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSupportsFormat with data set "not supported"";d:0;s:90:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSupportsFormat with data set "html default"";d:0;s:89:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSupportsFormat with data set "html custom"";d:0;s:87:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSupportsFormat with data set "html both"";d:0;s:61:"FOS\RestBundle\Tests\View\ViewHandlerTest::testRegisterHandle";d:0;s:84:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "no data"";d:0.001;s:93:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "no data with 204"";d:0;s:110:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "no data, but custom response code"";d:0;s:100:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "form key form not bound"";d:0;s:111:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "form key form is bound and invalid"";d:0;s:142:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "form key form is bound and invalid and status code in view is set"";d:0;s:106:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "form key form bound and valid"";d:0;s:111:"FOS\RestBundle\Tests\View\ViewHandlerTest::testGetStatusCode with data set "form key null form bound and valid"";d:0;s:73:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithLocation";d:0;s:80:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithLocationAndData";d:0;s:70:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithRoute";d:0;s:109:"FOS\RestBundle\Tests\View\ViewHandlerTest::testShouldReturnErrorResponseWhenDataContainsFormAndFormIsNotValid";d:0;s:100:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithoutLocation with data set "no form"";d:0;s:105:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithoutLocation with data set "invalid form"";d:0;s:98:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSerializeNull with data set "should serialize null"";d:0;s:102:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSerializeNull with data set "should not serialize null"";d:0;s:115:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSerializeNullDataValues with data set "should serialize null values"";d:0;s:119:"FOS\RestBundle\Tests\View\ViewHandlerTest::testSerializeNullDataValues with data set "should not serialize null values"";d:0;s:88:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponse with data set "no handler"";d:0;s:92:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponse with data set "custom handler"";d:0;s:94:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponse with data set "transform called"";d:0;s:59:"FOS\RestBundle\Tests\View\ViewHandlerTest::testHandleCustom";d:0;s:65:"FOS\RestBundle\Tests\View\ViewHandlerTest::testHandleNotSupported";d:0;s:79:"FOS\RestBundle\Tests\View\ViewHandlerTest::testConfigurableViewHandlerInterface";d:0;s:118:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithFormErrorsAndSerializationGroups with data set "json"";d:0.006;s:117:"FOS\RestBundle\Tests\View\ViewHandlerTest::testCreateResponseWithFormErrorsAndSerializationGroups with data set "xml"";d:0;s:51:"FOS\RestBundle\Tests\View\ViewTest::testSetLocation";d:0;s:48:"FOS\RestBundle\Tests\View\ViewTest::testSetRoute";d:0;s:76:"FOS\RestBundle\Tests\View\ViewTest::testSetData with data set "null as data"";d:0;s:77:"FOS\RestBundle\Tests\View\ViewTest::testSetData with data set "array as data"";d:0;s:49:"FOS\RestBundle\Tests\View\ViewTest::testSetFormat";d:0;s:67:"FOS\RestBundle\Tests\View\ViewTest::testSetHeaders with data set #0";d:0;s:67:"FOS\RestBundle\Tests\View\ViewTest::testSetHeaders with data set #1";d:0;s:53:"FOS\RestBundle\Tests\View\ViewTest::testSetStatusCode";d:0;s:65:"FOS\RestBundle\Tests\View\ViewTest::testGetStatusCodeFromResponse";d:0;}}} \ No newline at end of file diff --git a/Negotiation/FormatNegotiator.php b/Negotiation/FormatNegotiator.php index 5812961f2..d8d4048f0 100644 --- a/Negotiation/FormatNegotiator.php +++ b/Negotiation/FormatNegotiator.php @@ -41,7 +41,7 @@ public function add(RequestMatcherInterface $requestMatcher, array $options = [] $this->map[] = [$requestMatcher, $options]; } - public function getBest($header, array $priorities = [], $strict = false) + public function getBest($header, array $priorities = [], $strict = false): ?AcceptHeader { $request = $this->getRequest(); $header = $header ?: $request->headers->get('Accept'); diff --git a/Tests/Functional/VersionTest.php b/Tests/Functional/VersionTest.php index ec618c44a..4fcc98046 100644 --- a/Tests/Functional/VersionTest.php +++ b/Tests/Functional/VersionTest.php @@ -37,7 +37,7 @@ public function testVersionAnnotation() '/version?query_version=1.2', [], [], - ['HTTP_Accept' => 'application/json'] + ['HTTP_ACCEPT' => 'application/json'] ); $this->assertEquals('{"version":"test annotation"}', static::$client->getResponse()->getContent()); } @@ -49,7 +49,7 @@ public function testVersionInPathWithAnnotation() '/version/1.2', [], [], - ['HTTP_Accept' => 'application/json'] + ['HTTP_ACCEPT' => 'application/json'] ); $this->assertEquals( '{"version":"test annotation","version_exclusion":"1.2"}', @@ -64,7 +64,7 @@ public function testCustomHeaderVersion() '/version?query_version=3.2', [], [], - ['HTTP_Version-Header' => '2.1', 'HTTP_Accept' => 'application/vnd.foo.api+json;myversion=2.3'] + ['HTTP_Version-Header' => '2.1', 'HTTP_ACCEPT' => 'application/vnd.foo.api+json;myversion=2.3'] ); $this->assertEquals( '{"version":"2.1","version_exclusion":"2.1"}', @@ -79,7 +79,7 @@ public function testQueryVersion() '/version?query_version=3.2', [], [], - ['HTTP_Accept' => 'application/json'] + ['HTTP_ACCEPT' => 'application/json'] ); $this->assertEquals('{"version":"3.2","version_exclusion":"3.2"}', static::$client->getResponse()->getContent()); } @@ -91,7 +91,7 @@ public function testAcceptHeaderVersion() '/version?query_version=3.2', [], [], - ['HTTP_Accept' => 'application/vnd.foo.api+json;myversion=2.3'] + ['HTTP_ACCEPT' => 'application/vnd.foo.api+json;myversion=2.3'] ); $response = static::$client->getResponse(); @@ -106,7 +106,7 @@ public function testDefaultVersion() '/version', [], [], - ['HTTP_Accept' => 'application/json'] + ['HTTP_ACCEPT' => 'application/json'] ); $this->assertEquals( '{"version":"3.4.2","version_exclusion":"3.4.2"}', @@ -121,7 +121,7 @@ public function testVersionInPath() '/version/2.3', [], [], - ['HTTP_Accept' => 'application/json'] + ['HTTP_ACCEPT' => 'application/json'] ); $this->assertEquals( '{"version":"2.3","version_exclusion":"2.3"}', diff --git a/composer.json b/composer.json index dfe65b1c1..71a48384d 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ }, "require-dev": { "sensio/framework-extra-bundle": "^5.2.3", - "symfony/phpunit-bridge": "^4.1.8|^5.0", + "symfony/phpunit-bridge": "^5.2", "symfony/asset": "^4.4|^5.0", "symfony/form": "^4.4|^5.0", "symfony/mime": "^4.4|^5.0",