From fab97b6dc88719b148a183056e8ffbe0506ba4a5 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Wed, 18 Oct 2023 14:37:46 +0200 Subject: [PATCH] skip test for WebProfiler >= 7.0 --- Tests/DataCollector/DoctrineDataCollectorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/DataCollector/DoctrineDataCollectorTest.php b/Tests/DataCollector/DoctrineDataCollectorTest.php index f4f2aa00..4828ea24 100644 --- a/Tests/DataCollector/DoctrineDataCollectorTest.php +++ b/Tests/DataCollector/DoctrineDataCollectorTest.php @@ -15,9 +15,9 @@ use Symfony\Bridge\Doctrine\Middleware\Debug\DebugDataHolder; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Kernel; use function interface_exists; +use function method_exists; class DoctrineDataCollectorTest extends TestCase { @@ -133,7 +133,7 @@ public function testGetGroupedQueries(): void /** @group legacy */ public function testGetGroupedQueriesWithDeprecatedDebugStackLogger(): void { - if (Kernel::VERSION_ID >= 70000) { + if (! method_exists(DoctrineDataCollector::class, 'addLogger')) { $this->markTestSkipped('This test requires symfony < 7.0'); }