diff --git a/Tests/Functional/ViewHelpers/MultipleTypeViewHelperTest.php b/Tests/Functional/ViewHelpers/MultipleTypeViewHelperTest.php index ccf39d30..4778ad5f 100644 --- a/Tests/Functional/ViewHelpers/MultipleTypeViewHelperTest.php +++ b/Tests/Functional/ViewHelpers/MultipleTypeViewHelperTest.php @@ -130,7 +130,7 @@ public static function fluidTemplatesProvider(): iterable ', EOF, - '{"@context":"https://schema.org/","@graph":[{"@type":["ProductStub","ServiceStub"],"name":"foo"},{"@type":["ProductStub","ServiceStub"],"name":"bar"},{"@type":["ProductStub","ServiceStub"],"name":"qux"}]}', + 'expected' => '{"@context":"https://schema.org/","@graph":[{"@type":["ProductStub","ServiceStub"],"name":"foo"},{"@type":["ProductStub","ServiceStub"],"name":"bar"},{"@type":["ProductStub","ServiceStub"],"name":"qux"}]}', ]; } diff --git a/Tests/Unit/Core/Model/AbstractTypeTest.php b/Tests/Unit/Core/Model/AbstractTypeTest.php index c4be1c96..50346825 100644 --- a/Tests/Unit/Core/Model/AbstractTypeTest.php +++ b/Tests/Unit/Core/Model/AbstractTypeTest.php @@ -442,7 +442,7 @@ public function cacheForAdditionalPropertiesReturnsPropertiesAndTheseAreAddedSor #[Test] public function cacheForAdditionalPropertiesReturnsFalseAndDispatcherIsCalled(): void { - $cacheFrontendMock = $this->createStub(FrontendInterface::class); + $cacheFrontendMock = $this->createMock(FrontendInterface::class); $cacheFrontendMock ->expects(self::once()) ->method('get') @@ -484,7 +484,7 @@ public function cacheForAdditionalPropertiesReturnsFalseAndDispatcherIsCalled(): #[Test] public function cacheForAdditionalPropertiesReturnsFalseAndEventDispatcherIsCalled(): void { - $cacheFrontendMock = $this->createStub(FrontendInterface::class); + $cacheFrontendMock = $this->createMock(FrontendInterface::class); $cacheFrontendMock ->expects(self::once()) ->method('get') diff --git a/Tests/Unit/UserFunctions/FormEngine/WebPageTypesTest.php b/Tests/Unit/UserFunctions/FormEngine/WebPageTypesTest.php index 0940cbef..053c7d80 100644 --- a/Tests/Unit/UserFunctions/FormEngine/WebPageTypesTest.php +++ b/Tests/Unit/UserFunctions/FormEngine/WebPageTypesTest.php @@ -76,9 +76,7 @@ public function getAddsWebPageTypesToItemsArray(): void ], $params['items'][1]); } - /** - * @@test - */ + #[Test] public function getDoesNotAddWebPageTypesWhenNoWebPageTypesAreAvailable(): void { $subject = new WebPageTypes(new TypeProvider()); diff --git a/composer.json b/composer.json index 39fd03d3..741807a9 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "php-coveralls/php-coveralls": "^2.7", "phpstan/extension-installer": "^1.4", "phpstan/phpstan": "1.11.9", - "phpunit/phpunit": "^10.5", + "phpunit/phpunit": "^10.5 || ^11.3", "rector/rector": "1.2.2", "symfony/yaml": "^5.4 || ^6.4 || ^7.0", "symplify/phpstan-rules": "^13.0",