From 5c086cbbe5327937dd6f90da075f7d421b0f28bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Thu, 6 Jan 2022 09:54:40 +0100 Subject: [PATCH] Fix remaining test failures --- Tests/DependencyInjection/ConfigurationTest.php | 8 ++++++++ composer.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/DependencyInjection/ConfigurationTest.php b/Tests/DependencyInjection/ConfigurationTest.php index 19ecd7528..e4227ecf9 100644 --- a/Tests/DependencyInjection/ConfigurationTest.php +++ b/Tests/DependencyInjection/ConfigurationTest.php @@ -6,6 +6,9 @@ use PHPUnit\Framework\TestCase; use function class_exists; +use function extension_loaded; + +use const PHP_VERSION_ID; class ConfigurationTest extends TestCase { @@ -23,8 +26,13 @@ class ConfigurationTest extends TestCase /** @runInSeparateProcess */ public function testGetConfigTreeBuilderDoNotUseDoctrineCommon(): void { + if (extension_loaded('pcov') && PHP_VERSION_ID >= 80100) { + $this->markTestSkipped('Segfaults, see https://github.com/krakjoe/pcov/issues/84'); + } + $configuration = new Configuration(true); $configuration->getConfigTreeBuilder(); + $this->assertFalse(class_exists('Doctrine\Common\Proxy\AbstractProxyFactory', false)); } } diff --git a/composer.json b/composer.json index 9b51b86af..bcae79c42 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "symfony/cache": "^4.3.3|^5.0|^6.0", "symfony/config": "^4.4.3|^5.0|^6.0", "symfony/console": "^3.4.30|^4.3.3|^5.0|^6.0", - "symfony/dependency-injection": "^4.3.3|^5.0|^6.0", + "symfony/dependency-injection": "^4.4.18|^5.0|^6.0", "symfony/deprecation-contracts": "^2.1|^3", "symfony/doctrine-bridge": "^4.4.22|^5.2.7|^6.0", "symfony/framework-bundle": "^3.4.30|^4.3.3|^5.0|^6.0",